Qt Widgets vs Qt Quick for desktop and mobile application
-
Hi,
We have an application which should support both desktop and iOS. With rich UI controls and styles. which is the best way to develop the application either in qt widgets or QML. The codebase should be one and it should run on multiple platforms. I read in many forums that QML is inteneded for mobile platforms and widgets is good for desktop application. But my requirement is both. Please advice which one should I use for my application. Thanks
-
Hi and welcome to devnet,
You can very well use QML for both. There are also QML components for desktop widgets like button etc. So you can just use one code base
-
-
IMHO there is no general answer to your question since it depends on the complexity of your application.
QML is preferred on mobile platforms because their interface is rather simple compared to desktop applications and you can quickly create it. Also i think you won't have the exactly same feature set on mobile and desktop platform?
What i want to say is, it's not "bad design" to use QML on mobile and QWidgets on desktop. I would actually do so. But both can use the same application logic in the back.