Android 显示QML组合框内容时出错
我正在制作一个QML应用程序。我正在使用此代码填充QML组合框Android 显示QML组合框内容时出错,android,qt,qml,qtquick2,Android,Qt,Qml,Qtquick2,我正在制作一个QML应用程序。我正在使用此代码填充QML组合框 DelegateChoice { roleValue: "AUTOCOMPLETADO" ComboBox { Layout.row: index Layout.column: 1 Layout.fillWidth: true Layout.fillHeight: true //textRole: datoValor mo
DelegateChoice {
roleValue: "AUTOCOMPLETADO"
ComboBox {
Layout.row: index
Layout.column: 1
Layout.fillWidth: true
Layout.fillHeight: true
//textRole: datoValor
model: ListModel {
Component.onCompleted: {
for ( var k=0; k<5; ++k )
this.append({ text: "valor " + k } );
}
}
}
editable: true
//placeholderText: nombreCampo
onCurrentIndexChanged: {
r2.model.get( index ).datoValor = this.text;
}
}
}
如何修复它?什么是
r2
?请提供。r2是来自代理选择器的模型
W IInputConnectionWrapper: beginBatchEdit on inactive InputConnection
W IInputConnectionWrapper: getTextBeforeCursor on inactive InputConnection
W IInputConnectionWrapper: getTextAfterCursor on inactive InputConnection
W IInputConnectionWrapper: getSelectedText on inactive InputConnection
W IInputConnectionWrapper: endBatchEdit on inactive InputConnection
W IInputConnectionWrapper: beginBatchEdit on inactive InputConnection
W IInputConnectionWrapper: getTextBeforeCursor on inactive InputConnection
W IInputConnectionWrapper: getTextAfterCursor on inactive InputConnection
W IInputConnectionWrapper: getSelectedText on inactive InputConnection
W IInputConnectionWrapper: endBatchEdit on inactive InputConnection