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

pure QML (or) QML and QtWidget?

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 Posters 551 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.
  • P Offline
    P Offline
    Pythonic person
    wrote on last edited by
    #1

    Hello there, This is my first post in the forum :D.
    Well, I have a question, And I don't have much experience.
    Which is the best strategy to use a modern GUI Design?

    1. 100% QML
    2. QML + QtWidget
    3. QtWidget + QML

    I have already developed a python application using PyQt5 QtWidget, But now I want to have a modern GUI so I read about QML.
    my project is kinda big and has a lot of functionality, The main purpose for my application is: Drawing lines, polygons, shapes and inserting some images (for example let's say like painter application or even garden designer).

    So in my case which is a better strategy using 100% QML or QML + QtWidget? i have no idea where to start.

    Please if my question isn't clear just send me so I can update ASAP.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi can welcome to devnet,

      Please define what you mean by "modern GUI" with regard to what you currently have.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Pythonic person
        wrote on last edited by Pythonic person
        #3

        Thank you,
        Currently am using QWidget but I read about QML and how powerful it is in designing a good GUI
        maxresdefault.jpg
        Like above
        image link

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          And how does your interface look currently ?

          If your GUI is already fine then there's no need to absolutely port it to QtQuick. However it can be an interesting exercice to train your skills.

          Depending on your project direction, you can port parts of your GUI to QtQuick rather than doing everything from scratch.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          P 1 Reply Last reply
          0
          • SGaistS SGaist

            And how does your interface look currently ?

            If your GUI is already fine then there's no need to absolutely port it to QtQuick. However it can be an interesting exercice to train your skills.

            Depending on your project direction, you can port parts of your GUI to QtQuick rather than doing everything from scratch.

            P Offline
            P Offline
            Pythonic person
            wrote on last edited by Pythonic person
            #5

            Edited

            @SGaist The current GUI is built with PyQt5, and it has MainWindow with 2 taps (1_tab display canvas and 2_tab display panda3d), in the 1_tab we have at left a menu with tools (as the grid) and on the Right we have Canvas. And the whole app is working perfectly there are no problems, the only issue is that we have a very basic design as GUI and I want to transform it to a modern one somehow like the image above.

            So I think the solution is to have a QML instead of QWidget, Am I right?
            But I don't know where or how to start since the app is already built and working.
            And what strategies should I take?
            And am afraid of some functionality will not work after migrating I don't want to come into that moment.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              The image you show does not look like something that requires QtQuick rather some styling.

              I would recommend taking a look at the QML Book to get some ideas and then decide on the course of actions.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              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 Extensions
              • Unsolved