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. Qt Widgets or QML or both ?
Forum Updated to NodeBB v4.3 + New Features

Qt Widgets or QML or both ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 4 Posters 3.4k Views 2 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.
  • EatonCodeE Offline
    EatonCodeE Offline
    EatonCode
    wrote on last edited by
    #1

    I started learning Qt from books about 1.5 years ago and these books mention Qt Widgets, so that's what I started learning.

    About 8 months ago I asked help from freelancer and he guided me to use QML/Quick2 and to get away from Widgets. He told me that QT/QML was the future and I should be building my application for more than desktop applictions, branching out to large mobile devices such as iPads.

    In my original plan to use Widgets, I was using this Ribbon Control http://www.devmachines.com/qtitanribbon-overview.htm

    The Ribbon Control I was using was based on Widgets and the freelancer said I should not pay $400 a year for a subscription and told me that he could rewrite the Ribbon Control in QML instead and never need to pay for a subscription. So Far I have spent about $4,000+ with this freelancer and the quality of the product is very ugly, and not reusable in any sense.

    My Program relies on QtWebEngine and come to find out that I can't static compile for QtWebEngine. So my ideas for larger mobile devices are shot down. I understand to get something into Apple Store I must static compile.

    So I am back to the drawing board targeting Desktop Applications such as Linux, Mac and Windows and forgetting about mobile devices.

    My Application does a lot of heavy lifting and I need to pull every ounce of speed from the CPU that I can.

    I am now doubting my freelancer expert and thinking widgets are not so bad after all.

    What I am afraid of happening is that I spend 2 years getting my application stable with all the features I want then need to switch to something else.

    It's almost 2018, is it safe to base my application on Qt Widgets only?

    sierdzioS 1 Reply Last reply
    0
    • EatonCodeE EatonCode

      I started learning Qt from books about 1.5 years ago and these books mention Qt Widgets, so that's what I started learning.

      About 8 months ago I asked help from freelancer and he guided me to use QML/Quick2 and to get away from Widgets. He told me that QT/QML was the future and I should be building my application for more than desktop applictions, branching out to large mobile devices such as iPads.

      In my original plan to use Widgets, I was using this Ribbon Control http://www.devmachines.com/qtitanribbon-overview.htm

      The Ribbon Control I was using was based on Widgets and the freelancer said I should not pay $400 a year for a subscription and told me that he could rewrite the Ribbon Control in QML instead and never need to pay for a subscription. So Far I have spent about $4,000+ with this freelancer and the quality of the product is very ugly, and not reusable in any sense.

      My Program relies on QtWebEngine and come to find out that I can't static compile for QtWebEngine. So my ideas for larger mobile devices are shot down. I understand to get something into Apple Store I must static compile.

      So I am back to the drawing board targeting Desktop Applications such as Linux, Mac and Windows and forgetting about mobile devices.

      My Application does a lot of heavy lifting and I need to pull every ounce of speed from the CPU that I can.

      I am now doubting my freelancer expert and thinking widgets are not so bad after all.

      What I am afraid of happening is that I spend 2 years getting my application stable with all the features I want then need to switch to something else.

      It's almost 2018, is it safe to base my application on Qt Widgets only?

      sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      @EatonCode said in Qt Widgets or QML or both ?:

      It's almost 2018, is it safe to base my application on Qt Widgets only?

      Yes. Widgets are not deprecated, there are still bug fixes being applied to them, and they are still a great choice for desktop only apps. And they also do work on mobile OSes, although they are somewhat lacking in looks department.

      (Z(:^

      1 Reply Last reply
      3
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #3

        Regarding a QML / Widgets choice - it is entirely possible to keep your business logic separated from UI code so that you can have both Widgets UI and QML UI.

        (Z(:^

        1 Reply Last reply
        3
        • mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi
          Recreating QtitanRibbon in QML would be huge task and most likely only work good
          if made as a QML Extension in c++.

          Also if you keep a clean separation between what is showing data and what
          is altering data, there is nothing dangerous using Widgets as you can later
          use QML for interface and still reuse all data handling classes.
          (as @sierdzio suggests) This is actually good design
          albeit the introduction of javascript and QML syntax makes the development+maintenance
          more complex.

          Your Designer is right about QML is the future but if your product do not need
          tons of swiping and gesture based interaction, or openGl rendering then
          Widgets will fit just fine.

          Also, many major players are using Widgets for their products so they are here to stay for decades still.

          O 1 Reply Last reply
          2
          • mrjjM mrjj

            Hi
            Recreating QtitanRibbon in QML would be huge task and most likely only work good
            if made as a QML Extension in c++.

            Also if you keep a clean separation between what is showing data and what
            is altering data, there is nothing dangerous using Widgets as you can later
            use QML for interface and still reuse all data handling classes.
            (as @sierdzio suggests) This is actually good design
            albeit the introduction of javascript and QML syntax makes the development+maintenance
            more complex.

            Your Designer is right about QML is the future but if your product do not need
            tons of swiping and gesture based interaction, or openGl rendering then
            Widgets will fit just fine.

            Also, many major players are using Widgets for their products so they are here to stay for decades still.

            O Offline
            O Offline
            ofmrew
            wrote on last edited by
            #5

            @mrjj Are you saying that the direction of Qt 3D is toward QML? I have noted that there are more examples for QML.

            mrjjM 1 Reply Last reply
            0
            • O ofmrew

              @mrjj Are you saying that the direction of Qt 3D is toward QML? I have noted that there are more examples for QML.

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by mrjj
              #6

              Hi
              I think for the Qt 3D module both QML and widgets/c++ are targets so
              i think they will get equal attentions. Its not ment to be QML only.

              The QML sample tends to be less verbose than same c++ setup so i think
              its the main reason for more QML samples - currently.

              1 Reply Last reply
              1

              • Login

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