summaryrefslogtreecommitdiffstats
path: root/examples/demos
Commit message (Collapse)AuthorAgeFilesLines
* Update hangman example AGP to 7.4.1Nicholas Bennett2023-02-161-1/+1
| | | | | | | | | Task-number: QTBUG-111205 Change-Id: Ifc484b67d5b38c123582a933061c8fe13b0f661e Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> Reviewed-by: Rami Potinkara <rami.potinkara@qt.io> (cherry picked from commit 5f80aad472ab0994bef9b2568a8ecea910bf5def) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Doc: Fix paths for Files property in qt_attribution.json filesKai Köhne2022-12-081-0/+1
| | | | | | | Change-Id: I8ee14a3116d33164d471aa6cfb98e24caaa3ecd0 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io> (cherry picked from commit 0637012c788ebce36a1387f99dda1284b75e8b19) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* addressbook example: use system palette to define background colorTimur Pocheptsov2022-11-251-0/+2
| | | | | | | | | | | | | On macOS with native style in use, a (push)button is drawn using NSButtonCell. In Dark theme it's transparent (and the text on button has white color). Having a white background (table view's cell), transparent button on top + white text makes the text invisible. Fixes: QTBUG-108513 Change-Id: I29e92fc2c9adc1f34bc7401f8ba560128f6c5214 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> (cherry picked from commit 11d2f8bb22a99a172d1a409e7ab5a11146d90a2a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix contacts not shown in the UI of RESTful Address Book exampleKonrad Kujawa2022-11-151-1/+1
| | | | | | | | | | Transform data into correct container in AddressBookModel::updateContacts() method. Change-Id: I1cf6ddd4d47fcba2336b2e661f85c1cbeb724e91 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> (cherry picked from commit 5d4faa1d1e01a57a78e699c99758faa6cd073ea9) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Embiggen the calqlatr buttonsShawn Rutledge2022-11-102-6/+6
| | | | | | | | | | | | | | The buttons were too hard to hit, with such big gaps between columns and rows, and such a small active area. You can't see how big the active area is, so the expectation is that it should be large, for easy fat-fingering on a touchscreen. Task-number: QTBUG-102408 Task-number: QTBUG-108335 Change-Id: I9aab5d64a8c6c0a0218e9a91f93d072033e04e8a Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io> (cherry picked from commit edf70b2a4272c7f34e792c117214b7fe7ba2978c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Docs: Update Hangman example AGP to 7.2.1Rami Potinkara2022-10-201-1/+1
| | | | | | | | Task-number: QTBUG-107121 Change-Id: I83c2e8400217431e9a522b9fee49b2daa66001ee Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> (cherry picked from commit 08cda44873a57f8f44d6e33a11dec03c104117d1) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Docs: Remove Obsolete Getting Started with Purchasing QML docNicholas Bennett2022-10-192-260/+8
| | | | | | | | | | | | | Added a note about the state of purchasing in Qt 6. Removed obsolete Qt Purchasing getting started with QML doc and references to it. Fixes: QTBUG-107108 Change-Id: I24fc9c374b13a40a00ac8572da241ad5ecba8037 Reviewed-by: Rami Potinkara <rami.potinkara@qt.io> Reviewed-by: Paul Wicking <paul.wicking@qt.io> Reviewed-by: Tero Pelkonen <tero.pelkonen@qt.io> (cherry picked from commit da0969991b5395c2e4cef65b61fc2ff5e4d13c76)
* Fix Coffee machine demoThomas Hartmann2022-09-302-0/+2
| | | | | | | | | | | | | By using a constant/binding we avoid that the binding for the settings state is deleted as a side effect of having a Behavior. This fixes the demo, but not the underlying issue. Task-number: QTBUG-106677 Change-Id: Ic4c5da9f159cb242fd4d3f039286bc0a3bdb803f Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit 7d09e80d53063983cc3dc4c57896095efaf70c31) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Qt Quick UI for the RESTful Address BookKonrad Kujawa2022-09-0812-0/+715
| | | | | | | | | | | Add UI and client side extension for the RESTful Address Book example Fixes: QTBUG-105199 Change-Id: I01c5e2ac44838f01ccbb73d5b6e1d1e578c67618 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alex Blasche <alexander.blasche@qt.io> (cherry picked from commit 91e567ba53bf8c7be9aff8feb00e46f978937290) Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
* Hangman Demo: Do not crash on non-mobile platformsUlf Hermann2022-06-281-4/+5
| | | | | | | | | If we don't get the in-app purchases we can still do some things. Change-Id: I93a1abf3c4cfe0c19cd6d566590ec522db26eecd Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> (cherry picked from commit 7dd98a7b6136d29d3bc8576d940f5e71c941bfbf) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Use SPDX license identifiersLucie Gérard2022-06-07175-8211/+349
| | | | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. License files are organized under LICENSES directory. 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> (cherry picked from commit 6f57506953cc1efaf474368393ecb1df38c9f46a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Doc: Fix typosKai Köhne2022-01-284-5/+5
| | | | | | | | Found by running codespell: https://pypi.org/project/codespell/ Pick-to: 6.3 Change-Id: Id0824821cb39fef8731d0f1837207178708f3620 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* Examples: Remove unneeded CMake optionsKai Köhne2022-01-2511-31/+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>
* Examples: Improve CMakeLists.txt filesKai Köhne2022-01-2012-89/+36
| | | | | | Pick-to: 6.2 6.3 Change-Id: I7582f6c1b9daacaf694355269663b1d6616e0c05 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Remove CMAKE_AUTORCC from demosJoerg Bornemann2022-01-209-9/+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>
* Fix hangman demo public key verificationJani Korteniemi2022-01-131-5/+5
| | | | | | | | | fixed demo to uses json string to verify public key. Task-number: QTBUG-98542 Pick-to: 6.3 6.2 Change-Id: I2f79ad88652db4fcb8b7007475470bc74591d102 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
* Switch examples to build as isolated sub-buildsAlexandru Croitor2021-12-151-11/+11
| | | | | | | Pick-to: 6.2 6.3 Task-number: QTBUG-90820 Change-Id: I3e7b6dfa84573f2ae07fe5be8540618d1a93f695 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
* Add hangman game definitionJani Korteniemi2021-12-091-7/+15
| | | | | | | added definition of hangman game to the docs Change-Id: I95acd9bff0e4b4654ad976be4ca6f3e9638c800f Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io>
* Doc: Fix qdoc warningsVenugopal Shivashankar2021-11-154-34/+36
| | | | | | Change-Id: I10434c5231794ce91ddb170882ce8e55ca829cd0 Reviewed-by: Paul Wicking <paul.wicking@qt.io> Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* Add QtPurchasing module as an example under Qt demosJani Korteniemi2021-11-1065-0/+8650
| | | | | | | | | | | | | | | | | | | | | | | | | | QtPurchasing module is deprecated in Qt6. However, the purchasing code is moved as example/demo under qtdoc to demonstrate the use of in-app purchases in Android/iOS. The demo is under demos\hangman. Few fixes done to the original code: * Ported the code to Qt 6. * Removed reinterpret_casts and QQmlListPropertys. * Fixed few QML warnings. * Added documentation * Fixed documentation * Added CMake port * Fixed Cmake for iOS * Modified Fonts in qml file * project name changed from qthangmanpurchasing to hangman Task-number: QTBUG-84776 Pick-to: 6.2 Change-Id: I86051b29d54cfb4a48b310ebc8d538c806fbf8da Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io> Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
* CMake: Bump almost all cmake_minimum_required calls to 3.16Alexandru Croitor2021-09-229-9/+9
| | | | | | | | | | | | | 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>
* calqlatr: use QQC2 buttons and new cmake apiOliver Eftevaag2021-09-207-129/+182
| | | | | | | | | | | | | | | | | | In the process of preparing this example to become highlighted in Qt Creator, we want to update it to reflect how we think a modern qml application should be written. Some of the changes done here includes * Use QQC2 buttons, rather than a custom button component. * Update the CMake list to use qt_add_qml_module() * Some code refactoring (e.g const/let instead of var, switch/case, reduced binding spaghetti) Fixes: QTBUG-96460 Pick-to: 6.2 Change-Id: I6e6789038c053dac9528ba564431cef6c9168454 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
* Remove mentions of now private permissions APITor Arne Vestbø2021-07-271-5/+0
| | | | | Change-Id: I7c1cf089c8d05909b4664b90164f1aa9ef4df131 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
* Modernize calqlatr exampleAndrei Golubev2021-07-053-24/+25
| | | | | | | | | | Several things are addressed: * some unqualified accesses fixed * parent is replaced with actual ids Change-Id: I5ee1d1a2b1abad468ea330cd4eca0bf0b9b993ed Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Maximilian Goldstein <max.goldstein@qt.io>
* Remove dependencies from QtAndroidExtrasAssam Boudjelthia2021-06-043-33/+5
| | | | | | Change-Id: Ic5d0f3c60db8c7078aa5f57075c8b9a627594925 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* Speculative workaround for broken qt5 integrationMichal Klocek2021-06-031-1/+1
| | | | | | | | | Let's integrate multimedia api first and fix the linker error later. Task-number: QTBUG-94183 Change-Id: I0daa1b9d99ae4605e0d5908c89e5ca4ad06552c2 Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* Android: Fix build error issue in examplesJukka Passi2021-05-071-1/+1
| | | | | | | | | | Android target was omitted from unix branch when compiling coffee demo Fixes: QTBUG-56322 Pick-to: 5.15 Change-Id: I59a8aac7574188cbe0925d03808670417c152c9b Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> Reviewed-by: Rami Potinkara <rami.potinkara@qt.io>
* Update examples to use XmlListModel from QtDeclarativeIvan Solovev2021-03-1614-1173/+147
| | | | | | | | | | | | | | | | | | | Now when the XmlListModel is a part of QtDeclarative, we can udpate the examples, which were using the model. This patch introduces the following changes: - Uses XmlListModel from QtDeclarative, removes the custom implementation from shared subdir. - Improves photoviewer and rssnew examples to get rid of some qml and C++ warnings and deprecation notifications. - Updates the documentation for photoviewer and rssnew examples to reflect the usage of the XmlListModel from QtDeclarative. - Enables documentation build for rssnews example Task-number: QTBUG-89817 Change-Id: If3736a18070dc19492058f7c184d5c9cfab74663 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Use qt_add_executable for photosurface exampleAssam Boudjelthia2021-01-291-3/+3
| | | | | | | | | | This fails to build an apk on Android, it must use qt_add_executable which handles some extra stuff internally. Fixes: QTBUG-90747 Pick-to: 6.0 Change-Id: I600ae4f9fb5a4ad6bbb8d5c3a06d95314ec0552e Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* CMake: Regenerate projects using pro2cmake one last timeAlexandru Croitor2020-12-093-32/+29
| | | | | | | Pick-to: 6.0 Change-Id: I63976c150c1eeeffa0be35783d7cfd6e7e757b06 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Doc: Mark Coffee Machine Example as a Qt Quick DemoKai Koehne2020-12-081-1/+1
| | | | | | | | | | So that it shows up in https://doc.qt.io/qt-6/qtquick-codesamples.html The previous examples-tutorials group isn't used anywhere else. Pick-to: 6.0 Change-Id: I39f3e328c8ced3634afd0bbf37c0b5b9a5acb103 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* Coffee Machine Example: Add descriptionKai Koehne2020-12-041-0/+1
| | | | | | Pick-to: 6.0 Change-Id: If532f1e4fbe0f95374f957fcb0b4aea9c949de49 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* samegame: resolve URL correctlyFabian Kosmale2020-12-021-8/+8
| | | | | | | | | | The url resolution change in Qt 6 broke the example. Fixes: QTBUG-89040 Pick-to: 6.0 Change-Id: I80fa6083ab4c86f2752162f4e34bbfb639cfb027 Reviewed-by: Kai Koehne <kai.koehne@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* samegame: Fix deprecation warningsKai Koehne2020-12-023-3/+10
| | | | | | | | | | Fixes warnings for QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... } Pick-to: 6.0 Change-Id: Ifa6065856e4947b779ab75922d05e50e8be985bd Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* examples: Do not use versioned QML importKai Koehne2020-12-0278-116/+115
| | | | | | | | | 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>
* Coffee example: Remove explicit QT_DEPRECATED_WARNINGSKai Koehne2020-12-012-9/+0
| | | | | | | | Since Qt 5.13, this macro has no effect. Pick-to: 6.0 Change-Id: I85c71b259a2149c789ac56908b807b1b4de23b76 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* Doc: Fix issues with the Photosurface demo documentationTopi Reinio2020-11-272-15/+15
| | | | | | | | | FileDialog has been replaced with FolderDialog. Rename the element id accordingly. Pick-to: 6.0 6.0.0 Change-Id: I2c0732f74ce8f5c20ee1844080203c14b28e311a Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Example: Drop the use of Qt Quick DialogsVenugopal Shivashankar2020-11-261-4/+3
| | | | | | | | | | Use the Qt.labs.platform instead and adapt the FileDialog usage accordingly. Pick-to: 6.0 6.0.0 Change-Id: I18c94ee3571728e7523626b34d48e54434ee5f6f Reviewed-by: Paul Wicking <paul.wicking@qt.io> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Example: Move the shader code out of QMLVenugopal Shivashankar2020-11-2412-49/+135
| | | | | | | | | | | | | | | In Qt 6, the fragment and vertex shader programs have to be compiled into a package using the shader tool offered. These packages can then be added to the application's resource and referred to using its relative URL. In addition, addressed a few warnings reported by Qt Creator. Change-Id: Ic49f514d617182d21433d71bb3d18030667baeff Reviewed-by: Topi Reiniö <topi.reinio@qt.io> Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
* Example: Set the variable to read the XML fileVenugopal Shivashankar2020-11-191-2/+3
| | | | | | | | | Without the variable, the XmlHttpRequest cannot read the XML file. Fixes: QTBUG-87791 Change-Id: Icf699d8bbd4ec1921dadfd3331a024e04f7f5416 Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* Example: Adapt the Connections usage to Qt 6 styleVenugopal Shivashankar2020-11-191-2/+3
| | | | | | | | | | This should avoid the following warning: qrc:/NavigationButton.ui.qml:89:13: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... } Change-Id: I72c7afa85a456ac7551affee835108f779cd87b1 Reviewed-by: Paul Wicking <paul.wicking@qt.io> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* Remove qtxmlpatterns dependency from CMakeLists.txt and .pro filesDoris Verria2020-11-052-5/+7
| | | | | | | | Adjust .pro and CmakeLists.txt files of the demos according to the latest changes of the photoviewer and rssnews demos. Fixes: QTBUG-87444 Change-Id: I4b8a33d6e92c69e5524ad1d26b61b7fdaa430e45 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Use new XmlListModel in rssnews demoDoris Verria2020-11-0510-39/+103
| | | | | | | | Reuse the XmlListModel from the shared folder in rssnews and remove dependency from qtxmlpatterns. Fixes: QTBUG-88059 Change-Id: I9171805aa928d623b3d9953dc109a69729f509b8 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Port photoviewer's XmlListModel away from QtXmlPatternsDoris Verria2020-11-0515-55/+1010
| | | | | | | | Remove the qtxmlpatterns dependendency of photoviewer demo and reimplement XmlListModel class to use QXmlStreamReader instead of XPath/XQuery to query Xml. Fixes: QTBUG-88058 Change-Id: If21f3f361c8154bc56d94f37263801b33af8906f Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Doc: Fix QDoc warnings in qtdocNico Vertriest2020-10-292-3/+3
| | | | | | Task-number: QTBUG-86800 Change-Id: I00d2adb94ca024a54415fed4dbd7bb9df4ff10bb Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* CMake: Regenerate examples to set the WIN32_EXECUTABLE propertyAlexandru Croitor2020-10-269-0/+36
| | | | | | | | 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-238-16/+8
| | | | | | | 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-209-9/+9
| | | | | | Task-number: QTBUG-87661 Change-Id: Id97b3405ce69eb5db61790e8187a48762f3067db Reviewed-by: Daniel Smith <Daniel.Smith@qt.io>
* CMake: Regenerate projects before API changeAlexandru Croitor2020-10-0110-10/+51
| | | | | | | 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>
* Example: Add the app icon setupVenugopal Shivashankar2020-06-151-3/+23
| | | | | | | | | | | | | The example's qmake setup includes the app icon config, which is dropped in the CMake setup for some reason. In addition, updated the app icon setup instructions to use this example as a reference instead of the snippet file. Change-Id: I12bb8b007904164226dc78f2a2e162b08c9003e1 Fixes: QTBUG-83696 Reviewed-by: Paul Wicking <paul.wicking@qt.io>