Important: Please read the Qt Code of Conduct -

QML Backward Compatibility

  • Hi,

    we want to adjust our application for the new Qt Quick 2.0. The reason is the graphicaleffects module.
    But it should also work with Qt Quick 1.

    Is it possible to link dynamically to Qt Quick 2, if it's available.
    If not link to Qt Quick 1.

    Any Ideas?

  • Moderators

    Not really... in QML code you import either 2.0 OR 1.0. Also, the classes that display QML in C++ are different. So it's probably not possible unless you are prepared to use an awful lot of ifdefs in your code.

    When I was in a transition period between Qt4 and 5 in my project, I just used a script I have written that did most of the changes automatically.

Log in to reply