qml && c++ type
How can I find all the qml types in C++ , why qt set some C++ class that instantiates qml type private. it is not comfortable using setProperty(), property(),and invokemethod() to handling the ui controls in c++
in your .pro file, add
QT += quick-private qml-private
in your cpp files, add
@Vincent007 I cannot find any information about quick-private in help documents. Can you provide me any details about quick-private class library information. thank you very much
Hi and welcome to devnet,
Before anything else: why do you need to access the private parts of Qt ?
There's no special documentation about them because they are not part of the public API so their content can be changed or nuked at any time.
@SGaist It is just because personal behave. I like putting logic level in c++, qml just used to UI declaration
That doesn't explain why you are trying to access Qt's private parts. You don't need that in order to provide C++ implemented objects to QML.