Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Should I use QWidget or Qt Quick, or will HTML5 allow me to run it in a browser?
Tarostar last edited by
Hi, I've been exploring Qt for a couple of months now reading a book, implementing some tutorials and converting a few Qt4 projects to Qt5 and running them on Linux and Android. I still have much to learn and yet I need to start work on an app which will be used to log users on to high performance computing clusters to show and organise analysis of genome data.
At the moment I am considering Qt Widget App or Qt Quick App, but I am also contemplating HTML5 app if that will allow it to run in a browser(?). I note that the default Qt Quick App generated uses QGuiApplication as its basis and then sets the main.qml in a QQuick view derived class. From my understanding the main benefit here is the designer with transitions and ability to create a modern, sleek looking GUI.
QWidget seems a bit more straight forward to me with a QApplication with a MainWindow containing the UI, but it seems to me that QWidgets is almost a legacy feature from Qt4 and I'm not sure if there are any benefits to this over Qt Quick?
I would prefer to keep the UI separate from the C++ classes doing network communication and job/data handling so I can re-use it in other projects.
So, should I use QWidget or Qt Quick, or will HTML5 allow me to run it in a browser and give me more flexibility in deploying to various devices without compiling for each such device?