Qml 与 Qml , Qml 与 C++ 的值共享


例如,在 文件1.qml 里定义了一个 TextInput


 TextInput {
    id: input1
    ...
}

然后有一个 文件2.qml ,如何在 文件2.qml 中获取 文件1.qml 中的 TextInput.text

同样的,如果有一个 文件3.cpp ,如何在 文件3.cpp 中获取 文件1.qmp TextInput.text 呢?

先谢谢大家了!

qt-creator QT qml C++ Linux

阿萨德却无法 9 years, 2 months ago

Your Answer