Difference b/w qmlscence and qmlviewer



  • Hi i am newbie to QML and i have started reading about QML from just a few days onwards and i was little bit confused about qmlscene and qmlviewer,can anybody please explain me the difference about these two and i need to implement QML in our POS terminal which is planted with IMX6 processor.Which is the best option to execute qml in pos either by qmlscene or qmlviewer.
    Please guide me.
    Thanks in advance,
    Rohith.G


  • Moderators

    Hi @Rohith
    The qmlviewer was a tool used in Qt 4.x versions only and in Qt 5.x it is replaced by qmlscene. Usually these tools are used for rapid prototyping and testing QML applications and IMO not used for production environment.
    The recommended way is to use QQuickView or QQmlApplicationEngine depending upon your requirements. The default template in latest QtCreator will provide you QQmlApplicationEngine so as to make use of Window.



  • Hi @p3c0
    Thanks for replying me and solving my confusion.Now i need to use either QQuickView or QQmlApplicationEngine in our embedded device in order to execute the QML applications,Right.


  • Moderators

    @Rohith

    Now i need to use either QQuickView or QQmlApplicationEngine in our embedded device in order to execute the QML applications,Right.

    Yes.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.