我TextField
在main.qml文件中有一个
主文件
ApplicationWindow {
id: mainWindow
header: ToolBar{
id: tbMain
TextField{
id: tfsearch
}
}
}
在main.qml文件中StackView
,我将 searchresult.qml 添加到此堆栈视图中。
我想在 searchresult.qml 中知道如何使用 main.qml 中的 TextField 的 textchanged 信号和文本属性
在searchresult.qml
:
Connections {
target: tfsearch
onTextChanged: doStuff()
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句