Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QML or traditional gui?
Qt 6.12 LTS is out! See what's new in the release blog

QML or traditional gui?

Scheduled Pinned Locked Moved General and Desktop
17 Posts 11 Posters 26.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Frank
    wrote on last edited by
    #5

    "it won’t be ready for production usage for at least year"

    Don't know the timespan, but yes, it's not yet production quality.

    "it’s not intended to create anything but little apps just for fun"

    It will be an essential part at least for mobile applications.

    Right now, a lot of features are missing in QML, especially for desktop UIs. Unless you want a UI consisting of rectangles, go for a "classic" UI.

    1 Reply Last reply
    0
    • F Offline
      F Offline
      Franzk
      wrote on last edited by
      #6

      For desktop purposes Qt still advice to go for classic C++ UI programming. Can't remember where I read that though...

      "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #7

        As for me, then my attitude is as follows: QML - mobile devices, classical gui - desktops.

        1 Reply Last reply
        0
        • ? This user is from outside of this forum
          ? This user is from outside of this forum
          Guest
          wrote on last edited by
          #8

          It might just end up as "Qml everywhere" :)

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #9

            [quote author="chetankjain" date="1288865708"]It might just end up as "Qml everywhere" :)[/quote]

            Yes, I also think so, but it will take some time for QML to get mature and stable.

            1 Reply Last reply
            0
            • ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #10

              I hope Nokia isn't like Microsoft, where now WinForms is almost totally replaced with WPF. I think WinForms has many advantages over WPF, eg. loading time. I imagine that the classic QtGui has many advantages over QML (at least at this point). I hope that both will continue to be available.

              1 Reply Last reply
              0
              • ? Offline
                ? Offline
                A Former User
                wrote on last edited by
                #11

                My impression (Disclaimer: I never used Qt Quick so far for my work!) is that it is great for non-standard UIs, independent of where those run. It should make sense to check out Qt Quick for any highly styled application.

                If you want "full platform integration" (widgets that behave like in other applications on the system) then I would at this time prefer the classic widgets.

                Adobe lightroom looks like it would need a lot of customization and styling... so why not take a day or two to prototype something in Qt Quick? Styling is way simpler there!

                About speed: Quick is meant to work great on mobile devices, so it should perform well on a desktop machine:-)

                1 Reply Last reply
                0
                • C Offline
                  C Offline
                  cochise
                  wrote on last edited by
                  #12

                  [quote author="Denis Kormalev" date="1288824473"]QML is something that you can use as a base of your UI and insert classic widgets where it will be needed (for example if you will want some controls like sliders or checkboxes or spinboxes).[/quote]

                  Are you sure? I saw many examples for use QML components into a classic app via QDevlarativeView, but none for use qt classic widgets in a QML app.

                  http://cochise.tumblr.com

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    anselmolsm
                    wrote on last edited by
                    #13

                    [quote author="Cochise" date="1290101202"]
                    Are you sure? I saw many examples for use QML components into a classic app via QDevlarativeView, but none for use qt classic widgets in a QML app.
                    [/quote]

                    You can put your QWidgets inside QGraphicsProxyWidgets, then register them as QML components.

                    Anselmo L. S. Melo (anselmolsm)

                    1 Reply Last reply
                    0
                    • D Offline
                      D Offline
                      DenisKormalev
                      wrote on last edited by
                      #14

                      Cochise, yes, I'm sure. We are using QML in this way. Main part of GUI is in QML and sometimes there are injections of classic widgets via graphics proxy widgets.

                      UPD: anselmolsm, or simply insert them as children of root Object, it also works if you don't need a lot of work with them in qml.

                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        anselmolsm
                        wrote on last edited by
                        #15

                        [quote author="Denis Kormalev" date="1290105154"]
                        UPD: anselmolsm, or simply insert them as children of root Object, it also works if you don't need a lot of work with them in qml.[/quote]

                        Yep, it also works. I think we should create a wiki page about it with examples, it is not the first time I see this question here in the DevNet Forum. (I won't put the example here because it is not the main subject of this topic :-) )

                        Cochise, parts of the KDE PIM Mobile use QWidgets in this way. It is not ideal, though.

                        Anselmo L. S. Melo (anselmolsm)

                        1 Reply Last reply
                        0
                        • I Offline
                          I Offline
                          IrQX
                          wrote on last edited by
                          #16

                          Can anyone describe advantages or disadvantages of using QML for standart project, for example, like atandart office application?

                          1 Reply Last reply
                          0
                          • ? Offline
                            ? Offline
                            A Former User
                            wrote on last edited by
                            #17

                            There are some questions and answers to this topic. I added a section on the wiki page about QML:
                            "Qt Quick":http://developer.qt.nokia.com/wiki/Qt_Quick

                            1 Reply Last reply
                            0

                            • Login

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • Users
                            • Groups
                            • Search
                            • Get Qt
                            • Unsolved