Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Is QML the future for all Qt apps?



  • Hi, everyone. I've been researching and there are a lot of threads that recommend QML over QtWidgets, stating QtWidgets isn't actively maintained (Or not a focus of Qt anymore)

    I've tried out QML and must say it is amazing. Very powerful and expressive.

    However, I intend to create desktop applications and from what I've seen QML doesn't look native and maybe is best for situations like mobile app development or dashboard/touch-interface (Like you see in Qt's demo videos).
    https://omegle.onl/ https://vshare.onl/
    Would love to hear your thoughts on this and please correct me if I said something off. If you've made a desktop application in QML or know of any cool examples, do let me know. I've only come across Qt's basic QML demos which aren't really fully-fledged apps.

    Also, I heard KDE uses a lot of QML. How are they able to use QML while respecting the user's Qt theme choice? I did check and my favorite KDE apps seem to be in QtWidgets though.


  • Qt Champions 2019

    @reniwqwil5 Qt Widgets ARE maintained. There is simply not that much to do as it is already quite mature.
    Qt Widgets will be there in future, so there is no problem in using it for normal GUI applications.

    "How are they able to use QML while respecting the user's Qt theme choice?" - using style sheets I guess.



  • I'm also curious about the future.
    Some local Qt company staff came to our office and showed a presentation a few weeks ago.
    I think they are really focusing on marketing QML. And they said QML has better performance than QtWidgets.
    But I'm super-unfamiliar with QML...


  • Qt Champions 2019

    @Bonnie said in Is QML the future for all Qt apps?:

    QML has better performance than QtWidgets

    Yes, QML uses OpenGL for rendering.



  • @Bonnie said in Is QML the future for all Qt apps?:

    But I'm super-unfamiliar with QML...

    Hi,
    Unfortunatelly me either :(
    But future is going to QML I guess. Like or not, we need to learn it in any case. :)

    Regards,
    Mucip:)


  • Lifetime Qt Champion

    @Mucip :

    @jsulm said in Is QML the future for all Qt apps?:

    @reniwqwil5 Qt Widgets ARE maintained. There is simply not that much to do as it is already quite mature.
    Qt Widgets will be there in future, so there is no problem in using it for normal GUI applications.


  • Lifetime Qt Champion

    Hi
    No, the future will also include QWidgets as else it would be like cutting the legs of a racehorse and
    insist it works just as well as long as you drag it around in a trailer...

    That said in Qt6 , many new nice things will come to QML making it better suited for large desktop-ish apps.



  • IMHO, I'm developing the future for all Qt applications now....more on this soon, its almost ready!


Log in to reply