QWidgets are deprecated?
-
Hi boys,
I was told that the QWidgets are deprecated because now QML is better.
I think that QML is really better, but if my UI's use the classic widgets and not advanced graphic implementation that QML can offer, why using QML?
Really the QWidgets are deprecated?
What do you think?Thanks
Stefano
-
Hi,
Where did you see that ?
There are quite a lot of application still written with widgets.
-
Hi SGaist,
recently in a company where I work I took a basic course of QML and the teacher told this.
QML is very powerful, but for advanced UI's.
It makes no sense to me to user QML for standard UI's.
Also because this news comes just now that I've learned to use widgets well :( -
I don't know where that teacher got that but widgets are not deprecated and won't be for a long time. QML has its uses, but also drawbacks. For some applications, new ones too, widgets are still the way to go. It all depends on a use case.
-
As usual: evaluate your needs and use the stack that matches your project the best.
You can even integrate QtQuick in widget applications if needed. The other way around is a bit more complicated (there's a KDAB module for that).
There's no reason to jump and rewrite everything from scratch just to use a new tech. Ensure that it provides a real benefit.
-
Many thanks at all.
You told me exatly what I thought.Stefano
-
I don't know where that teacher got that but widgets are not deprecated and won't be for a long time. QML has its uses, but also drawbacks. For some applications, new ones too, widgets are still the way to go. It all depends on a use case.
@Chris-Kawa said in QWidgets are deprecated?:
widgets are not deprecated and won't be for a long time.
Indeed.
Even Qt Creator, the official IDE for Qt, is mainly made of widgets!