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 quick controls 1 vs 2 decision

Qt quick controls 1 vs 2 decision

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 2.8k 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.
  • O Offline
    O Offline
    Orchaosis
    wrote on last edited by
    #1

    Hi Guys!
    I am just a lonely developer , recently return my qt adventure.

    As far as i know quick controls 2 do not have custom style feature whereas it got complete style sheet ; material , universal ...
    so using quick controls 1 is still viable ? I want to use some custom elements but i do not want to lose performance - stability or whatsoever.
    What is actually quick controls 1.4 and 2.2 difference ?
    Any suggestions are welcome ,i am in a confusion.

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

      @Orchaosis said in Qt quick controls 1 vs 2 decision:

      As far as i know quick controls 2 do not have custom style feature whereas it got complete style sheet ; material , universal ...

      You can develop custom styles for Controls 2. You can stylize single components or the whole set. It does work in a different way than with Controls 1, that's true, but it still is possible to do.

      so using quick controls 1 is still viable ? I want to use some custom elements but i do not want to lose performance - stability or whatsoever.

      Starting from Qt 5.11 Controls 1 will be deprecated, so if only possible I would advise you to go with Controls 2. Don't worry, though, Controls 1 will not be removed from Qt anytime soon (not before Qt 6 comes, most probably, and that's still a looong way off). It is also perfectly possible to mix Controls 1 and 2, so you can do most of the UI using Controls 2 and switch to the former only when absolutely necessary.

      Regarding performance and stability: Controls 1 still receive bug fixes. Their performance is worse than Controls 2, but it's not bad. I've used Controls 1 in a very UI-heavy app even on cheap/ weak Android phones and it was still usable.

      What is actually quick controls 1.4 and 2.2 difference ?

      Internally they are build in a totally different way. Controls 2 focus on performance, and it lacks some of the components (TreeView, TableView, SplitView etc.) - they will be added later. The API for both versions is almost the same so porting is usually easy.

      An in-depth article on the differences (quite old, but still relevant) can be found here.

      (Z(:^

      1 Reply Last reply
      3

      • Login

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