aboutsummaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Simplify dragNDrop example and remove unneeded aliasThomas Zander2023-02-211-11/+1
| | | | | | | Change-Id: Ia0e5d5dc46a60b6d88864b3250f8cf91b03b897f Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> (cherry picked from commit 03b75a0baa0a77649ca3dca5f7ca17a46b96a2ac) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Use SequentialAnimation.loops in FlashAnimation in handlers exampleShawn Rutledge2023-02-211-7/+1
| | | | | | | | | It looks less tedious. Amends 8503f884bbdb50c4bebc8f8a9fce05275b0612b1 Change-Id: I85690e6a8ceac4ebec1c00bcbbf6a81108096e6c Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io> (cherry picked from commit 40e2811843b3dc414d48f2221e2dee888b448b9b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix locale exampleFabian Kosmale2023-02-131-14/+15
| | | | | | | | | | | | | | Instead of fetching data from the view, we should rather fetch it from the model, which avoids a bug with casting when the currentItem is null. Use the opportunity to use a typed list for the model instead of a plain JS array. Original-patch-by: Kai Köhne <kai.koehne@qt.io> Change-Id: Ib23fb31b3d0a2c309c98bf762cea1a8c05080c38 Reviewed-by: Kai Köhne <kai.koehne@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit 05683ad15d068b42b8b54d75a3c5377e994bface) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Use inline component in sidebar example rather than LoaderShawn Rutledge2023-01-051-64/+57
| | | | | | | | | | | | Originally in ca9e2a0d7488cbbb94d8343c43eb49c6ee5f6519 I used Loader as a way of reusing some content in two places in one QML file, not necessarily to test hover behavior with Loader. Inline components are a little cleaner. Change-Id: Ib064bdb460704bec0c714550d8935dcef8af0637 Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io> (cherry picked from commit cae32cb2ec0df3eb6f5e048259b90fe3d182f479) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Examples: Update custom QSGMaterialShader correctlySze Howe Koh2023-01-041-0/+1
| | | | | | | Change-Id: I469c4f813f006ca47f9660a0c9ccfa30bbe89dc6 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io> (cherry picked from commit f92a2a679886b09ff03e9d70d1bf1269f421347a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* map example: don't restrict pinch-zoom to centerShawn Rutledge2023-01-031-2/+0
| | | | | | | | | | | A big advantage of PinchHandler over PinchArea is the ability to zoom into a particular location in the target Item, so let's not fail to show that off. Change-Id: I0f22abff99bdc60bac27e72fd5f66be4796794df Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> (cherry picked from commit e39b4572c272f8a0a7be048a24808cb028480e82) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* QmlExamples: Add missing dependencies of QtQuick in CMakeListsSemih Yavuz2022-11-0915-19/+25
| | | | | | | | | | | | | Running qmllint on extending-qml examples raises a plenty of warnings due to a missing dependency declaration to QtQuick. Simply add it. Also add FINAL to all properties exposed from C++ to disable (possible) property shadowings. Fixes: QTBUG-106602 Change-Id: I7b12a804f8f3ca64bd8f2f312a9e53dfe02b0a4c Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit 826cf9bb808999d9b49f8ad53b80a902e8fd7bda) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Flatstyle example: use qt_add_qml_module() in CMakeLists.txtOliver Eftevaag2022-11-061-26/+18
| | | | | | | | | | | qt_add_qml_module() should be used instead of qt_add_resources() for adding resources to examples in qtdeclarative. Task-number: QTBUG-98130 Change-Id: I41adae7f861f6cbcc13a735a43e8b5dd3ec31934 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> (cherry picked from commit 5663b772e02758a0c1f45a556061b25c68796da5) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Gallery example: Use qt_add_qml_module() in CMakeLists.txtOliver Eftevaag2022-11-061-75/+67
| | | | | | | | | | | | | | We want to use qt_add_qml_module() instead of qt_add_resources(). Note that this change also changes the target to 'galleryexample', which will also affect the name of the executable. I'm making that change in order to be consistent with other examples. Task-number: QTBUG-98130 Change-Id: I1ed1af18a01b652673828c60e803cb2ea9b04a3d Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> (cherry picked from commit fa00dee21ccd6f7ec159a8d88756df6e778b8d32) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix texteditor example for AndroidTomi Korpipaa2022-10-212-0/+85
| | | | | | | | Fixes: QTBUG-103939 Change-Id: I60237f8cc58ebb6781a4df272fb7da13467d6640 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> (cherry picked from commit 51ddad5ffde6f14f8a826ef57e652e56578afd76) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix TypeError in dynamicview1 exampleSami Varanka2022-10-201-1/+7
| | | | | | | | | | | | | Rectangle's parent was null when setting left and right anchors. Use pragma ComponentBehavior: Bound and required properties instead. Fixes: QTBUG-106645 Change-Id: Ie5b8c3a20948799363fad1332113884612d18968 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> (cherry picked from commit 7af1f664ac22d82d367d9fee9b6903242bf986ac) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* SEO-enhance attached property documentationFabian Kosmale2022-10-121-0/+6
| | | | | | | | | | | | | Currently, it's rather hard to find the documentation on how to write attached properties. The page that gets found first in most search engines seems to be the example - so link from it to the actual documentation pages. Change-Id: I78c9949d62863b5c11ffcd97413084ab03b0bc33 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> (cherry picked from commit 78beaa5ff81ac8b269bfd302d1770df87e29aaa4) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Automotive example: Use qt_add_qml_module()Oliver Eftevaag2022-09-271-158/+115
| | | | | | | | Task-number: QTBUG-98130 Change-Id: I18e45ab63e0cab8611b4274e2d312db12fc9775d Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> (cherry picked from commit fc7854702705ae04f1ffd57685b20e21791b2cb3) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* SidePanel example: use qt_add_qml_module() in CMakeLists.txtOliver Eftevaag2022-09-271-25/+17
| | | | | | | | | | | This patch replaces the usage of qt_add_resources() with qt_add_qml_module() Task-number: QTBUG-98130 Change-Id: I31ef1bd0c725fe741c8505fa1620801195e46eeb Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> (cherry picked from commit aaab4e797a728538e23a6695eb3edfef756f2669) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* TextEditor example: use qt_add_qml_module in CMakeLists.txtOliver Eftevaag2022-09-271-22/+19
| | | | | | | | | | Our examples should use qt_add_qml_module when possible. Task-number: QTBUG-98130 Change-Id: I9f5946bf287734aab52c08691d6e38910de0e410 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> (cherry picked from commit 316310158bb51edbe813f15742b165b0e69c95ab) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Contactlist example: use qt_add_qml_module() in CMakeLists.txtOliver Eftevaag2022-09-262-25/+16
| | | | | | | | | | | This patch also includes a small change to a signal handler, in order to avoid a warning message. Task-number: QTBUG-98130 Change-Id: I2df71f397a4a8cb43912b90c0c89b297f5463568 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> (cherry picked from commit ec9312687e36ac06faaf4d4cdbd2528cc297a849) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* SwipeToRemove example: use qt_add_qml_module() in CMakeLists.txtOliver Eftevaag2022-09-262-25/+14
| | | | | | | | | | | We want our examples to use qt_add_qml_module(), since it has a lot of advantage over the old method of using qt6_add_resources(). Task-number: QTBUG-98130 Change-Id: I124863e50a9cf201981ea073d5b2096d511271a4 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> (cherry picked from commit 8d613f693ec8d9ff48f6c82f842206e6b1e9b889) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Musicplayer example: use qt_add_qml_module() in CMakeLists.txtOliver Eftevaag2022-09-261-189/+157
| | | | | | | | Task-number: QTBUG-98130 Change-Id: Ib1eeaf1f837e10eaf88b0e64d792466db8b4f151 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> (cherry picked from commit d9d9b0c3aa4b9674fe177e95220b18a80074891f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Examples: Fix .pro files for chattutorialBartlomiej Moskal2022-09-166-11/+20
| | | | | | | | | | | | | | | | Chat Tutorial application was not able to find main.qml file when using qmake. It was caused by cmake adaptation for using qt_add_qml_module. The main.qml file is currently searched in the chapter directory. To these changes also qmake configuration must be adapted. Fixes: QTCREATORBUG-27655 Change-Id: I1e92d806dbfeb17e613596f96fd24f53fb6eba1d Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> (cherry picked from commit a9841877f38223ce81692b437d58a0cf07541da1) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* todolist example: Make it easier to hide keyboard when finished editingDoris Verria2022-09-142-1/+23
| | | | | | | | | | | | - Hide keyboard on Keys.onReturnPressed event in the TextField-s - Add "Done" button to TextArea to mark editing as finished and hide the keyboard in return Done-with: Mitch Curtis <mitch.curtis@qt.io> Change-Id: I3351e5b3db356946b59b19c6f424153cbf2dbbb1 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> (cherry picked from commit db0716571c17a33809d9c4f53722fbc99656c0a4) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* examples/texteditor: remove use of Material styleSamuli Piippo2022-09-141-3/+0
| | | | | | | | | | | | Amend ec582ef0b9e31c5e8fb9d36a17f1e39f593d7455 which removed use of Material as the default style. This cause example to fail when cross-compiled, as it then used different qml file which had dependency to Material style. Fixes: QTBUG-106557 Change-Id: I7f918363a47c801a6755eca38c1c4bc4da2854b6 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io> (cherry picked from commit a5ced5b63c7fdd2ce83f1fb54c25ae38fbad8246) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Controls: add todolist example for showcasing the iOS StyleJenny Lofthus2022-09-0837-0/+1022
| | | | | | | | Task-number: QTBUG-80261 Change-Id: Ie6d86b0a49bd0684373816d709c7e010aff7e7a5 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit 6b5cf5969889a88d5f506692c859d1bd4f59d5dd) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Examples: Do not use import version numbers anymoreKai Köhne2022-08-31171-245/+245
| | | | | | | | | Change-Id: I1f4d4920bb9d132a846ac2dbcfdb8b660759d540 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> (cherry picked from commit b7f448f8647a9a118cee2d79d446194b20d4b335) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* examples, texteditor: remove the config file, and use default settings insteadRichard Moe Gustavsen2022-08-313-13/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The qtquickcontrols2.conf file was hard coding the style to be Material. In addition, it was overriding both the Primary and the Foreground color, and sat Theme=System. The latter meant that the application would run in either Light or Dark mode, depending on the OS. And for Dark mode, the assigned colors caused the text to end up with the same color as the background color, and therefore be invisible. The same with the toolbar buttons; since the icon color of a toolbar button map to the primary color, and the primary color was hard-coded to be the same as the background color in the configuration file, the buttons would appear hidden. Since we now have native styles for both macOS and Windows (and Fusion on Linux), overriding the style (and especially the colors) in a config file seems unnecessary. This patch will therefore remove the whole config file, and use the default style settings instead. Fixes: QTBUG-105860 Change-Id: I330fe30746096cf26d8dca343f2c122d7c32c7fe Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io> Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> (cherry picked from commit ec582ef0b9e31c5e8fb9d36a17f1e39f593d7455) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* examples: deploy qmldir for plugin exampleSamuli Piippo2022-08-311-0/+2
| | | | | | | | | We need to deploy qmldir to make the example work also for remote targets. Change-Id: Id0b7bf4a48bd163ddf5e44a5a68ca3edbbcc008e Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit b21290a731876d6c26546b48ab339d36cb873745) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* TextEditor example: use the ColorDialog from qt quick dialogsOliver Eftevaag2022-08-251-10/+20
| | | | | | | | | | | | | | | | | | | | | In 6.4 we're introducing the ColorDialog in the qt quick dialogs module. This was the final dialog, that was missing from the module in previous versions of qt. This change will make use of the new dialog, instead of the qt labs platform version, which is using the widgets color dialog as a fallback. The eventual goal for this example should be to eliminate the need for the qt labs platform module entirely. Note that I am also making a small change to how the font dialog is being used, since we deprecated the currentFont property in the 6.3 release, but I forgot to update this example along with it. Change-Id: Ib99ca7cbf110d3084ff96dfadfa1cd8c8af8815e Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> (cherry picked from commit 314cae87524993a2af8068aa81c90ab2f1006590) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Doc: Fix image for eventcalendar exampleBartlomiej Moskal2022-08-251-1/+1
| | | | | | | | | | | Use correct image in documentation for eventcalendar example. Fixes: QTBUG-105572 Change-Id: If217dfa536aea2fa3197510c36a865053e3e96dd Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> (cherry picked from commit db11519e68aa819c635d7e893ba9005a05fead42) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* texteditor: fix out-dated code snippetMitch Curtis2022-08-251-1/+1
| | | | | | | | | The property should be selectedFile, not file. Change-Id: I3ce399a7df2d80d122058c411b9b1a633f04fc64 Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io> (cherry picked from commit 2f67fdb949600bc542e69a89b3a70cfe3e9996c6) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Use SPDX license identifiersLucie Gérard2022-06-14726-33987/+1452
| | | | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Files that have to be modified by hand are modified. License files are organized under LICENSES directory. Task-number: QTBUG-67283 Change-Id: I63563bbeb6f60f89d2c99660400dca7fab78a294 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> (cherry picked from commit 0dc4fd240a2897c5c443a0ef6d84c416843e4938) Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Examples: Replace qt-5 urlsKai Köhne2022-06-053-6/+6
| | | | | | Pick-to: 6.3 Change-Id: Ifec0960bfb3f179e2cf5ff5e7f11364b106a86e3 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* Doc: Rename snippet id to a unique identifierAndreas Eliasson2022-06-022-4/+3
| | | | | | | | | | The header file has two snippets with the same id. Rename to unique values and link to the correct snippet id from the qdoc file. Fixes: QTWEBSITE-1051 Pick-to: 6.3 Change-Id: I9003916f831898026f520fd86d60ab1c0230e6c4 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* Fix URI of i18n exampleUlf Hermann2022-06-021-1/+1
| | | | | | | | It shouldn't be "dynamicscene" as that URI is already used by a different example. Change-Id: I35ac6b7ea70703f24304f640252f922d6a5b2371 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* Update the text editor to use the MessageDialog in qt quick dialogsOliver Eftevaag2022-05-111-6/+7
| | | | | | | | | | | | Our goal is to eventually remove the dependency for the qt labs platform module. This patch will replace one of the labs platform MessageDialogs, with a MessageDialog from qt quick dialogs. All of the dialogs that are used in this example will eventually be from the qt quick dialogs module. Change-Id: I19f97948bf04d0fa5b265e057bbf49374bb51472 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Doc: Add CMake sections to 'Creating C++ Plugins for QML' pageAndreas Eliasson2022-05-042-7/+36
| | | | | | | | | | | | - Revise grammar - Fix so that example project can be built from the command line using CMake - Add tabs on example page Pick-to: 6.3 Task-number: QTBUG-102330 Change-Id: Ic6bdcadec66850f5e811dcaac23a8cb59a6c3f94 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* Doc: Add CMake documentation to 'Extending QML' exampleAndreas Eliasson2022-04-252-6/+6
| | | | | | | | Fixes: QTBUG-102085 Pick-to: 6.3 Change-Id: I8f79a00b9ef827f229a94bc840b1951c8f67e4a2 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* qmldom: Fix standalone compilation against Qt 6.3.0Fawzi Mohamed2022-04-221-1/+1
| | | | | Change-Id: I402eeeab1cd6f5e02d5f49eedbd01010de39d05a Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* Merge "Merge remote-tracking branch 'origin/dev' into wip/iosstyle"Mitch Curtis2022-04-011-0/+3
|\
| * Merge remote-tracking branch 'origin/dev' into wip/iosstyleMitch Curtis2022-03-3134-388/+242
| |\ | | | | | | | | | Change-Id: I669b338496d926b5a2fa0f49561dddc0cf349bd0
| * \ Merge remote-tracking branch 'origin/dev' into iosstyleRichard Moe Gustavsen2022-03-1012-12/+12
| |\ \ | | | | | | | | | | | | Change-Id: If094d48e544c4ea14c1e4c21d99322b71b580dde
| * | | Add directory for new iOS style and initial plugin implementationDoris Verria2022-02-101-0/+3
| | | | | | | | | | | | | | | | | | | | Change-Id: I80c8d0406a071e435bc8872aad7478fb75996475 Reviewed-by: Doris Verria <doris.verria@qt.io>
* | | | Add VERBATIM option to add_custom_command callsAlexey Edelev2022-03-311-0/+1
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use VERBATIM option to prepare the correct command line for the add_custom_command. This especially sensitive when using build directories with names containing special symbols, that cannot be handled by shell correctly. Change-Id: Ic6ea2a557fe4e7ccc1d2a0c5c4ab707223c0b91a Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* | | Add cmake support for examplesFabian Kosmale2022-03-294-4/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | qml-i18n needed to be ported to CMake first. It uses qt_add_translations introduced in 6.2 As a drive-by, move find_package calls from examples' CML to the top level CML, and make the QtSql dependency optional. Also make sure that we only add the dynamicscene example when the Quick target is available. Pick-to: 6.2 6.3 Fixes: QTBUG-90964 Change-Id: Id357eb14e4704753386e01393300966eb89b4e86 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* | | Sidebar example: nest content in MouseArea to restore hover propagationShawn Rutledge2022-03-281-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After 499828b855d125ac236917f6ed01d8f1e7d88505 if you want a MouseArea underneath some other contents to receive propagated hover events, the content must be inside the MouseArea, not a sibling. HoverHandler still does not have this restriction (handlers cannot have items as children, and the handler is not considered a sibling: it's an event-handling facet added to the item in which it's declared). Pick-to: 6.3 6.2 Change-Id: I5ac31d982e429ac002cb0bd7ae9c071ab927032b Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
* | | Replace paintedWidth/Height with contentWidth/HeightTasuku Suzuki2022-03-271-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | They were renamed in 51b7425329e0fa221c319e8d75595c19f664aedb Pick-to: 6.2 6.3 Task-number: QTBUG-15160 Change-Id: If30f69d47adf391d2d1c795caaf2bbe15f6bc32a Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* | | Add improvements to object listmodel exampleJani Korteniemi2022-03-222-10/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Scaled to fit whole screen on android. Replaced items with Qt Module names. Randomized colors. Added scrollbar. Task-number: QTBUG-95438 Pick-to: 6.3 6.2 Change-Id: I1686aff4d4770d0d34399f20301c8fc393b8d778 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
* | | Make QQuickWidget QRhi-basedLaszlo Agocs2022-03-1826-367/+155
| |/ |/| | | | | | | | | | | | | | | | | | | | | When it comes to examples, quickwidget has the direct OpenGL usage removed because we want this example to be working with any graphics API. qquickviewcomparison, which features direct OpenGL usage within its Qt Quick scene, is renamed to a more descriptive name and is also getting a doc landing page. It continues to be requesting OpenGL (via QRhi) explicitly. Change-Id: Iae5b835441f3af229e9746e14dedbe9d1a62b2b9 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* | Use QSGRendererInterface::OpenGL in documentation and examplesKai Köhne2022-02-1412-12/+12
|/ | | | | | | | | | | QSGRendererInterface::OpenGLRhi is only an (undocumented) alias to ...::OpenGL, so let's use that instead. Amends 0b2311a62b25c Pick-to: 6.2 6.3 Change-Id: I4acdd39dc1d9b75bed5c474667a43b4ad86e7f47 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Improve examples CMakeLists.txtKai Köhne2022-01-24118-967/+402
| | | | | | | | | | | | | | | | | | - Remove # generated from xyz.pro comment from pro2cmake - Remove "# special case" markers for pro2cmake - Remove automatic use of CMAKE_AUTORCC - Only opt into CMAKE_AUTOUIC if .ui files are involved - Remove explicit setting of CMAKE_INCLUDE_CURRENT_DIR - Combine multiple find_package(Qt6 ... calls) - use REQUIRED COMPONENTS - sort components alphabetically - Fix wrong indentations - Use (only) one empty line after multi-line commands Pick-to: 6.3 Change-Id: I0d6bfb06c4b25e9921d3d2bf31d977150f12b31b Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Disambiguate "parent" in flatstyle exampleShawn Rutledge2022-01-241-5/+5
| | | | | | | | | | | | | Amends d7862eac1b09f9fb28e540970d5cc98cb6479c52 "rectangle" wasn't a good name for the circular knob part of the switch. By using a more unique name "nub" we can make it a bit easier to read and avoid using "parent" at all. https://en.wiktionary.org/wiki/nub Fixes: QTBUG-100110 Pick-to: 6.3 Change-Id: I428dc6d8463af4ea7e5890145fd40590fed4bcbe Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Rename "Basic Types" to "Value Types"Ulf Hermann2022-01-211-1/+1
| | | | | | | | | | Internally they've been called "value types" all along. Now that we are adding the ability to define your own value types the "basic" name is not really fitting anymore. Value types can be quite complex. Change-Id: I5fb4abec1dd2f0bbf7fb7f08b02db0882490e983 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>