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