May 9, 2012

qtd1d1 qtd1d1
Lab Rat
71 posts

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?

1 reply

May 11, 2012

sierdzio sierdzio
Area 51 Engineer
2346 posts

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.

 Signature 

(Z(:^

 
  ‹‹ Hour Glass stuck when loading qml pages to loader      Loader element and CommonDialog element ››

You must log in to post a reply. Not a member yet? Register here!