Creator doesn't know anything about your packages and modules so it can't highlight or complete it. You need to write some additional code to make your modules recognizable by Creator.
Creator doesn't know anything about your packages and modules so it can't highlight or complete it. You need to write some additional code to make your modules recognizable by Creator.
Hi Wysota,
Thanks for your reply. Surely, if an example is provided by Qt to view, it should have all code written already. I haven't written this, it came with the Qt package.
It's a coding example, not an example of highlighting qml syntax in Qt Creator which is not the only possible way one might be using Qt. If we try to understand it the way you do, Trolls would have to provide appropriate mechanisms for Visual Studio, Eclipse, KDevelop and all other possible code editors in the world.
I mean setting up Qt 4.7 to allow me to use C++ with QML and QML Designer. At this moment in time, I'm unable to do so as when I create C++ classes and expose them to QML and use them, they work and the application will run, but I cannot use QML Designer as it does not recognise these classes as QML objects and gives me the errors you see in the images.
QML and C++ are two different languages. You can't use them "together".
Did you tell Creator about them by providing an appropriate extension plugin?At this moment in time, I'm unable to do so as when I create C++ classes and expose them to QML and use them, they work and the application will run, but I cannot use QML Designer as it does not recognise these classes as QML objects and gives me the errors you see in the images.
Bookmarks