summaryrefslogtreecommitdiffstats
path: root/examples/interfaceframework/qface-tutorial/ch7-own-template
Commit message (Collapse)AuthorAgeFilesLines
* Fix references to Jinja sourcesZoltan Gera8 days6-6/+6
| | | | | | | | | | Include and import references to Jinja sources and build system references to template files are fixed to use the changed extensions. Task-number: QTBUG-140720 Pick-to: 6.11 Change-Id: I427264a45fc3eca5aaea92e7a2cac19cce44b5b7 Reviewed-by: Dominik Holland <dominik.holland@qt.io>
* Rename template file extensions to standard Jinja onesZoltan Gera8 days8-7/+7
| | | | | | | | | | Trivially rename template files and the corresponding yaml descriptors, so they can be modified in a second step. Task-number: QTBUG-140720 Pick-to: 6.11 Change-Id: Ica684442a79782553407878d4b12093ef7d9ba25 Reviewed-by: Dominik Holland <dominik.holland@qt.io>
* CMake: Also install QML plugins in all examplesDominik Holland2024-09-051-0/+19
| | | | | | | | | | | | | Although we link the QML module, we don't reference any symbol and the linker might drop the lib because of that. This causes the qmldir module to be missing in the resource file system. To fix the error we also deploy the QML plugin itself. Fixes: QTBUG-128501 Pick-to: 6.8 Change-Id: Iad63c7e8e828c68321f263d5644add251895a38e Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Modernize the CMake part in the qface-tutorialDominik Holland2024-08-229-176/+55
| | | | | | | | | | | | | All CMake files have been rewritten to use new Qt CMake APIs and also use the declarative type registration. The QML files of the UI are still resources to stay compatible with qmake. Fixes: QTBUG-117034 Pick-to: 6.8 Change-Id: I6c555bb748f1378c0f894145e0cfbbb0bb92f2bf Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Fix rpath and install-location of the qface-tutorialDominik Holland2024-07-154-5/+13
| | | | | | | | | | | | * Call find_package in the toplevel CMakeLists.txt to make sure the dbus chapters are loaded if QtDBus is available * Use qt_standard_project_setup() to setup the default rpath. * Correctly install the QML modules Pick-to: 6.8 6.7 6.6 6.5 Task-number: QTBUG-124279 Change-Id: I5f6f020bee2c10a6845de5ba42bb904b502c74fb Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Start using the new literal operator from Qt::StringLiteralsDominik Holland2023-05-093-7/+13
| | | | | Change-Id: I4f5d723d01dc8e8e410920f96e6a445b194ac389 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Fix IF examples and their Creator compatibility on AndroidZoltan Gera2023-04-273-3/+5
| | | | | | | | | | | | | | | | | | | Interfaceframework examples were not working properly on Android as various OS specific deployment options were not set correctly. This caused blank screens when QML resources were not found and also frozen UIs when a backend plugin could not have been located. Android specific CMake settings are added which do not influence the desktop builds. The examples were tested for Creator compatibility. OUTPUT_NAME setting was removed from executables as Creator cannot deploy them correctly. Also Creator generated CMake project files are ignored from now on. Fixes: QTBUG-110675 Fixes: QTBUG-110674 Pick-to: 6.5 Change-Id: Icfee46dceac509949d7e092f4290df9efc3df68b Reviewed-by: Dominik Holland <dominik.holland@qt.io>
* qmake: Fix example buildDominik Holland2023-01-121-0/+0
| | | | | | | | | This ammends bb45241069ab11ef63333bc4e6f65ff0dd8d9fee and renames all pro files accordingly. Pick-to: 6.5 Change-Id: Ib369333b12e46224b845b5222f3ff936d72bc58d Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* qface-tutorial: Improve qml plugin codeDominik Holland2022-12-151-0/+3
| | | | | | | | | Also add the CLASS_NAME for static linking and IMPORTS statement for a QML dependency to qt_add_qml_module. Pick-to: 6.4 6.5 Change-Id: Ia12600994b3046104bb1a7128f3ef7e34039543d Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Extend the tutorial by a chapter for own templatesDominik Holland2022-09-1639-0/+1682
Pick-to: 6.4 6.4.0 Fixes: QTBUG-98998 Change-Id: Iec90f15b2d2854dbd3c7d0be3fea0c078c64f440 Reviewed-by: Robert Griebl <robert.griebl@qt.io>