Witch is the difference between Qt Widget Application and QT quick application



  • My question punctually is this, like when i open Qt Widget Application i have the .ui files to design and when i start with QT quick application y use .QML files to design, i see that ui designer is not the same that the QML designer why? what are the difference? i have a very little idea and is this, but i am not sure:
    QT quick application > to design a global form
    Qt Widget Application > to design form.

    This is correct, have more differences between? Thanks for your patience and y bad English.


  • Moderators

    Hi @Modonga,

    Qt Widgets is the older, but more mature technology. Qt Quick is more "modern".

    Also, you write Widget logic in C++, but you write Qt Quick logic in QML and JavaScript. See http://doc.qt.io/qt-5/qmlapplications.html



  • @Modonga
    From a book on Qt5
    Qt Quick is the umbrella term for the user interface technology used in Qt. Qt Quick itself is a collection of several technologies:
    • QML - Markup language for user interfaces
    • JavaScript - The dynamic scripting language
    • Qt C++ - The highly portable enhanced c++ library

    To add to JKSH ,Qt Widgets are mature and amazingly optimized for desktop applications.Quick technology was introduced when handheld devices were gaining momentum and is still being improved to work on those devices.It makes it easy to design fluid user interfaces.Also Quick makes the separation between ui design and business logic easy and obvious.



  • @musimbate said:
    Also Quick makes the separation between ui design and business logic easy.

    I saw this expression everywhere users wants to praise QtQuick. What's different if using Qt Widgets ? Why the hell all are saying the logic cannot be separated using widgets, I really don't know ... Of course for widgets apps, "designers" will have to use C++ language and QtDesigner IDE. For QtQuick, "designers" will have to use QML and JavaScript language (and QtCreator). So who is favored ? I know you said QtQuick part because QML and JavaScript is script-able ... heck ...
    Also take a look at J-P Nurmi's bechmark
    You'll see QtQuickControls take much more memory even with new controls for embedded ...

    To respond to @Modonga, yes QtQuick is best choice for mobile, it's true (but if you have some app without fluid animations, you can safely use Qt widgets, I saw a lot of mobile apps made with widgets).
    For desktop applications I'd use QtWidgets technology, even for animations part using Qt Animation framework (& Qt State machine)



  • great differences, i like all reply... This mark me a start point... So i am working in widget to develop my raspberry pi system boot.... Because the same application can be used in windows, ubuntu, linux, etc.... But i see that is no the efficient way... But for me programming in widget is more easy is like a "visual C++". But if i am searching for a fast and more interactive application i need to see "QtQuick" that is a little bit more complicated.. But this QtQuick application could be used in another operating system, like in a form? i am right what i am saying?

    To be strictly specific: i am design in widgets a form without borders and running in my raspberry pi as the only application "default one on boot" few seconds after i boot y see my application whit only one button like:
    LCD screen shot old school method

    Regards



  • This post is deleted!

  • Moderators

    Hi @Modonga,

    But this QtQuick application could be used in another operating system, like in a form? i am right what i am saying?

    Sorry, I don't quite understand your question. Could you please explain?

    Anyway, Qt Quick and Qt Widgets can all be used on multiple platforms (Windows, Linux, OS X)


Log in to reply
 

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