Hello,
I am trying to integrate a QML control into a Form window (following the QMLTest example with the timer/green/blue square), which uses a QDeclarativeView in the form.
This works fine with QtQuick 1.0 but apparently not with QtQuick 2.0
When i change to QtQuick 2.0, I get the error:
module “QtQuick” version 2.0 is not installed in the Application Output window. I tried many of the suggestions in different posts (i.e. adding QML_IMPORT_PATH etc… ) but to no avail: these solution seems to be geared towards QtQuick applications based on the QuickQmlViewer, not using Forms.
I’m pretty new to Qt, and I’m a bit confused by the changes between QtQuick 1.0 and 2.0, but it seems like there are major differences. Is using QDeclarativeView still the way to go to use QML Quick 2.0 controls in a form? I hear post saying QQuickView should be used instead, but it’s not one of the options in the Designer in QtCreator. Would that mean it’s the new way to go but it needs to be done in code? It seems quite painful to resort to this option: the whole point of using forms and QML for me was to make it easy for the designer!
So, some light on the proper recommended way to integrate QML QtQuick 2.0 controls in a Form Window would be great. i need to use some of the Form fonctionalities (i.e. menus, tabs and docking widgets) but integrate my custom UI built on QML in those.
Let me know what you think…
and if there is a way to configure the project properly to use QML QtQuick 2.0 controls in Forms, any help on how I should make it happen would be very much appreciated.
↧