QuickPublication example: Port CMakeLists.txt to use qt_add_qml_module


Port the CmakeLists.txt and change the source files accordingly:
- rename main.qml to Main.qml
- remove MqttClient import from Main.qml
- add QML macros to qmlmqttclient.h
- revamp main.cpp

Also update the qmake build:
- revamp quickpublication.pro
- add qmldir to project
- remove qml.qrc

Pick-to: 6.6 6.5
Task-number: QTBUG-110893
Change-Id: Iffe3e80e40f318d1520ca108933760c0e5d0c18a
Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
commit63b5119a3e2675ab23041632fd43db4b1bb7a2da
parent6e3f752fc45b4874ec389647eb2954e76c878f3e
authorMate Barany <mate.barany@qt.io>
committerMate Barany <mate.barany@qt.io>
commit timeTue, 20 Jun 2023 11:33:02 +0200