summaryrefslogtreecommitdiffstats
path: root/examples/tutorials
Commit message (Collapse)AuthorAgeFilesLines
* CMake: Add deployment API to our examplesAlexandru Croitor2024-05-131-9/+12
| | | | | | | | | | | | | | | | | | Projects were modified using the tool at: https://git.qt.io/alcroito/cmake_refactor Some examples had to be adapted manually, mostly those that build additional qml modules / plugins. documentviewer did not get the deployment api, because it's trickier. Pick-to: 6.7 Task-number: QTBUG-101340 Task-number: QTBUG-102056 Task-number: QTBUG-102057 Change-Id: I76322185fc824c112d77e077ee39e7ccbc193a4c Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Correct build system file license under exampleLucie Gérard2024-03-192-2/+2
| | | | | | | | | | | | | According to QUIP-18 [1] all files under examples should be licensed LicenseRef-Qt-Commercial OR BSD-3-Clause [1]: https://contribute.qt-project.org/quips/18 Pick-to: 6.7 6.7.0 Task-number: QTBUG-121787 Change-Id: Ia2e8f62af64a384196a9b0c02ac5b2fbf5404a8b Reviewed-by: Kai Köhne <kai.koehne@qt.io>
* Examples: Build tutorials/alarms in CIKai Köhne2023-12-122-0/+9
| | | | | | | | | The alarms example was not tested in the CI so far. Pick-to: 6.7 Task-number: QTBUG-116489 Change-Id: I4ac00456b393a35dcf0e63651972bac45560fdaa Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Examples: Use private linkage where possibleKai Köhne2023-05-021-1/+1
| | | | | | Pick-to: 6.5 Change-Id: Ib5e0b7c7ace6f399b4742eec5879eb06cf67debf Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
* Examples: Use unversioned CMake commandsKai Köhne2023-05-021-2/+2
| | | | | | | | | | | | Prefer unversioned commands over qt6_ ones - even though the target-based qt_add_resources command is actually new in Qt 6. But we will evolve the API also between major Qt versions, so it's better to work with the Qt policies mechanism instead of relying on version numbers in the command API. Pick-to: 6.5 Change-Id: If302abb1f22a7ab96c98a8ad2e9c871b9bedb0e9 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
* Use versioned CMake targets for Qt modulesKai Köhne2023-05-021-3/+3
| | | | | | | | | | | Use e.g. Qt6::Core instead of Qt::Core. This is better matching the find_package(Qt6 ...) call, and also avoids issues that the versionless targets have. Pick-to: 6.5 Task-number: QTBUG-113277 Change-Id: I9bc7963d8524ef2ab061e32aef428711646247a7 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
* Change the license of all CMakeLists.txt and *.cmake files to BSDLucie Gérard2022-08-231-1/+1
| | | | | | | Task-number: QTBUG-105718 Change-Id: Iec124e0bceb4335370674a222970cd9c1b90763f Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Add license headers to cmake filesLucie Gérard2022-07-071-0/+3
| | | | | | | | | | | | CMakeLists.txt and .cmake files of significant size (more than 2 lines according to our check in tst_license.pl) now have the copyright and license header. Existing copyright statements remain intact Task-number: QTBUG-88621 Change-Id: I9499ba4c20f610ffe8af0fc3e29e6581247f2c40 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Use SPDX license identifiersLucie Gérard2022-06-076-294/+12
| | | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. License files are organized under LICENSES directory. Pick-to: 6.4 Task-number: QTBUG-67283 Change-Id: Idfd176b7f7b077a5b7c66b7738dc9bcac94ab290 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Replace uses of deprecated _qs with _sSona Kurazyan2022-04-261-1/+3
| | | | | | Task-number: QTBUG-101408 Change-Id: I011d5ed352298902158d0b1b89ad3b99b310fc83 Reviewed-by: Marc Mutz <marc.mutz@qt.io>
* Fix alarms demo to run successfullyAlexandru Croitor2022-02-044-5/+15
| | | | | | | | | | | | | | | | | | | | | | | | | Previously it failed with QQmlApplicationEngine failed to load component qrc:/alarms/main.qml: No such file or directory main.cpp was adjusted to use alarms/main.cpp but the resource file locations were not changed. Change them to match the expected path in main.cpp. qtquickcontrols2.conf needs to stay in the root of the resource path, so it's added via a separate resource. Amends 302121874ea6e664ea2a59a07bff8fa06983c335 Pick-to: 5.15 6.2 6.3 Fixes: QTBUG-100434 Change-Id: I3436e07600ca7dad8bba45274ba49dc6c137a938 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Topi Reiniö <topi.reinio@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* Examples: Remove unneeded CMake optionsKai Köhne2022-01-251-3/+0
| | | | | | | | | | | | CMAKE_INCLUDE_CURRENT_DIR is not necessary anymore for moc since CMake 3.8: https://cmake.org/cmake/help/latest/release/3.8.html#other-changes Enable CMAKE_AUTOUIC only if .ui files are present. Pick-to: 6.3 Change-Id: Ic34418e3306de0ee1769bc3153bb833f7951da19 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Update Qt Quick GS tutorialLeena Miettinen2022-01-241-3/+8
| | | | | | | | | | | - Update information about and screenshots of Qt Creator New Project wizard template. - Use the main.cpp file generated by Qt Creator 7.0 Fixes: QTBUG-99847 Pick-to: 5.15 6.2 6.3 Change-Id: I1c2208267e9554e2f929ffffaa3dabd5554fc12e Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* Examples: Improve CMakeLists.txt filesKai Köhne2022-01-201-7/+4
| | | | | | Pick-to: 6.2 6.3 Change-Id: I7582f6c1b9daacaf694355269663b1d6616e0c05 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Remove CMAKE_AUTORCC from demosJoerg Bornemann2022-01-201-1/+0
| | | | | | | | | All demos are using qt6_add_resources. Pick-to: 6.2 6.3 Task-number: QTBUG-87643 Change-Id: I14c7d876b2ac3b1a24cec78fbd4463a46c71e564 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* CMake: Bump almost all cmake_minimum_required calls to 3.16Alexandru Croitor2021-09-221-1/+1
| | | | | | | | | | | | | Needed for subsequent change that will check and error out if the version is lower than 3.16. We do that to ensure all policies introduced by CMake up to version 3.16 have their behavior set to NEW. Pick-to: 6.2 Task-number: QTBUG-95018 Change-Id: I23a59d7bfa89ffdacf8002b03657b7da38669ee2 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* examples: Do not use versioned QML importKai Koehne2020-12-025-18/+18
| | | | | | | | | Ignore .ui.qml files though for now, until they are properly handled by Qt Design Studio. Task-number: QTBUG-89033 Change-Id: I85ea1dc2f85928e9fa1f473535687ab8b0288e9d Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* tutorial/alarms: Do not use labs.calendarFabian Kosmale2020-12-011-1/+0
| | | | | | | | | | The example doesn't actually use it anyway. Pick-to: 6.0 Fixes: QTBUG-89026 Change-Id: Id6a7a44af8674a28113372de5ed080f18d1c287a Reviewed-by: Paul Wicking <paul.wicking@qt.io> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* CMake: Regenerate examples to set the WIN32_EXECUTABLE propertyAlexandru Croitor2020-10-261-0/+4
| | | | | | | | As well as the MACOSX_BUNDLE properties as necessary. Task-number: QTBUG-87664 Change-Id: I474b13a0a78a33fff1d06b283a88b0c33a7dd524 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Examples: Don't enable high DPI scaling explicitlyRobert Loehning2020-10-231-3/+1
| | | | | | | Compiler complains that's deprecated and always on. Change-Id: Ic42db6288cde5c95093715afd5df98368d67bd1f Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* CMake: Regenerate examples to use qt_add_executableAlexandru Croitor2020-10-201-1/+1
| | | | | | Task-number: QTBUG-87661 Change-Id: Id97b3405ce69eb5db61790e8187a48762f3067db Reviewed-by: Daniel Smith <Daniel.Smith@qt.io>
* CMake: Regenerate projects before API changeAlexandru Croitor2020-10-011-1/+5
| | | | | | | Task-number: QTBUG-86815 Change-Id: Id8da24b8a26f0263324a8fed5fd9cedbfa3ee11a Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* CMake: Port the build setup to CMakeVenugopal Shivashankar2020-05-041-0/+49
| | | | | | Fixes: QTBUG-83910 Change-Id: If0ebd9d0b528cd84ffe92955b7d1c4d580d397fb Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* QtQuick: Fix & clean up alarms.proKai Koehne2018-11-061-23/+4
| | | | | | | | | | | The current example didn't compile on Windows, because all Qt examples require a target file. Also clean up unnecessary parts generated by the Qt Creator wizard. Change-Id: I40b834e544a146d3e232844e667d568b102bec5c Reviewed-by: Paul Wicking <paul.wicking@qt.io> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
* Doc: Update source code for deleting alarmsv5.12.0-beta3Nico Vertriest2018-10-152-2/+2
| | | | | | | Rewrote delete statement in AlarmDelegate.qml Change-Id: Ib112103c0666a6bce34576da5f38594ceac14788 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Doc: Correct bug when deleting alarmNico Vertriest2018-10-041-1/+1
| | | | | | | qrc:/AlarmDelegate.qml:139: ReferenceError: alarmModel is not defined Change-Id: Id92b377375006e08d25a593b6532a5eaeb5b35a0 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* Doc: tutorial Get Started with Qt QuickNico Vertriest2018-09-269-0/+719
Task-number: QTBUG-68739 Change-Id: Ib14e4eb4c20583af2be9198539077f1be5ae471a Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>