summaryrefslogtreecommitdiffstats
path: root/examples/widgets/doc/src
Commit message (Collapse)AuthorAgeFilesLines
* Doc: Resolve qdoc link warningsPaul Wicking2024-02-142-4/+6
| | | | | | | | | | | - Drop link to non-existing documentation. - Reorder links such that the target becomes the text and vice versa. - Use correct link target names. - Add missing qttestlib doc project dependency to qtwidgets. Pick-to: 6.7 Change-Id: Iaa0ea7b22326c82271b14b17c4b78c3a25a834f1 Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* Menu example: Use theme iconsFriedemann Kleint2024-02-011-1/+2
| | | | | | Pick-to: 6.7 Change-Id: I7f77457b439919e7a7882f23e21e648d8965859a Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Doc: Create separate Graphics and Multimedia example categoriesJaishree Vyas2024-01-1620-20/+20
| | | | | | | Fixes: QTBUG-117884 Pick-to: 6.6 6.7 Change-Id: I33c7b1cbfaeae866dffb0e89a5d09d775736d886 Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* Remove the style plugin exampleVolker Hilsheimer2023-12-211-133/+0
| | | | | | | | | | The snippets in the QStylePlugin class documentation show the relevant bits well enough. Pick-to: 6.7 6.6 Fixes: QTBUG-119974 Change-Id: Iba4a37664d64d86a2946f41d131a201ccdcd723b Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* Remove echo pluginAxel Spoerl2023-12-202-184/+0
| | | | | | | | | Remove echo plugin code and documentation. Fixes: QTBUG-119981 Pick-to: 6.7 Change-Id: I4083ac6cdb768facaed041241af2c5ee6e28df50 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Turn SpinBox Delegate example into snippetsVolker Hilsheimer2023-12-201-118/+0
| | | | | | | | | | | | The essence of the example was already fully quoted in the model/view documentation. Move the code into a snippet source, and update the screenshot. Fixes: QTBUG-119976 Pick-to: 6.7 6.6 Change-Id: Id2f10bb26a650419969bbfa9b76cb74babd3319e Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io> Reviewed-by: Andreas Eliasson <andreas.eliasson@qt.io>
* Update Sliders exampleVolker Hilsheimer2023-12-191-43/+45
| | | | | | | | | | | | | | | | | Simplify the "responsive layout" implementation. Just use a QBoxLayout with changing direction instead of repopulating a QGridLayout, and change the orientation of one set of sliders instead of creating two sets in a stacked layout. Simplify the resizeEvent() implementation accordingly. Update the documentation snippet text to match the code, and document the resizeEvent() override. Pick-to: 6.7 6.6 Fixes: QTBUG-119977 Change-Id: I73a1bb215c956fa283291ebf0ea45ff9a975c727 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* Move the settingseditor example into tests/manualVolker Hilsheimer2023-12-151-15/+0
| | | | | | | | | | | | | | | | The example uses QTreeWidget when it should use a QTreeView with a dedicated item model, primarily shows how to use item views (and very little about QSettings), and is generally not useful to show how an application could or should use QSettings to store settings. Turn it into a manual test instead; it's useful for that as it supports ini and plist files, and settings in different scopes. Pick-to: 6.7 Fixes: QTBUG-119978 Change-Id: I7ce039f6391c41c679d126d90a251eee60327c39 Reviewed-by: Ed Cooke <ed.cooke@qt.io> Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* Turn the "concentriccircles" example into snippets, update screenshotVolker Hilsheimer2023-12-141-210/+0
| | | | | | | | | | | | | The example has a lot of code and documentation, but in essence shows how to use float-based QPainter APIs and how to set a render hint. That is two lines of code, which we can show as snippets. Update the screenshot of the example with a higher-resolution version. Pick-to: 6.7 6.6 Fixes: QTBUG-119983 Change-Id: Iafcb813dff6ab8c269176f7994c95947ebf5e559 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
* Polish the SimpleTreeModel exampleFriedemann Kleint2023-12-061-2/+3
| | | | | | | | | | | | | | | | | | | - Fix/silence most clang-tidy/compiler warnings * unsigned/int comparison * Avoid repeating return / default parameter types * Make functions static/use static invocations * Use string literals everywhere * Use auto * for pointers * Streamline code, use ternary operators * Move constructor parameters * Observe rule of 5 by using Q_DISABLE_COPY_MOVE - Add some bells && whistles, resize properly, expand all Complements 25027444a9b53d61a6257dc5f5ce0ffdb3b06f98. Pick-to: 6.6 Change-Id: I78f48d187981ecabf69a5d4d42715bad026fa9e6 Reviewed-by: Kai Köhne <kai.koehne@qt.io>
* EditableTreeModel: Add a testFriedemann Kleint2023-12-061-0/+15
| | | | | | | | Add a test running QAbstractItemModelTester on the model. Pick-to: 6.6 Change-Id: I40c141c7e754ca05234da611534bd65e456be2fb Reviewed-by: Kai Köhne <kai.koehne@qt.io>
* SimpleTreeModel: Add a testFriedemann Kleint2023-12-041-0/+16
| | | | | | | | Add a test running QAbstractItemModelTester on the model. Pick-to: 6.6 Change-Id: I6ea5d34308357409b9a13eb0271392c8d171addd Reviewed-by: Kai Köhne <kai.koehne@qt.io>
* Doc: PainterPaths-Graphic&Multimedia-Example typo in the documentationJaishree Vyas2023-12-011-7/+4
| | | | | | | | | Changed the brief and some grammatical errors. Fixes: QTBUG-119602 Pick-to: 6.6 Change-Id: Ib64abeb735899b0ae1cee64709ad3d7f8f440d9e Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* Refurbish the clock exampleMatthias Rauter2023-11-131-37/+43
| | | | | | | Fixes: QTBUG-118871 Pick-to: 6.6 Change-Id: I0a1a6444cb381d49adbc39e73d7862c9cfe61dce Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Convert tooltips example to snippetsVolker Hilsheimer2023-10-271-375/+0
| | | | | | | | | The important bits from the example are ~10 lines of code, no need for building a poor-man's version of a graphics or item view. Pick-to: 6.6 Change-Id: I7874c66765c5b46230c92846ee3de1ee83f47e45 Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
* Preparations to deprecate QItemDelegateChristian Ehrlicher2023-10-052-10/+10
| | | | | | | | | | | | | QItemDelegate was superseded since Qt4 by QStyledItemDelegate but it took until Qt6.7 to remove the last occurrences in qtbase. - remove unused includes / replace with qabstractitemdelegate.h - replace references in the documentation with QStyledItemDelegate - adjust the examples and tests to use QStyledItemDelegate Pick-to: 6.5 6.6 Change-Id: I246755004ce2d01192a726ca0972106c237df0cc Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* Move Calendar Widget Example to UI Components categoryKai Köhne2023-09-271-1/+1
| | | | | | Pick-to: 6.6 6.6.0 6.5 Change-Id: Iafa05fbfde41dbbf7ddffd667983db9cc1c6e184 Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
* Doc: Fix typo in examplecategory commandAndreas Eliasson2023-09-261-1/+1
| | | | | | | | | This resolves (qdoc) warning: Unknown command '\examplecateogry' Pick-to: 6.6 6.5 Change-Id: I52c417bde49ce52089da485d6144f64d636f5a3b Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
* Doc: Fix documentation issuesTopi Reinio2023-09-111-1/+1
| | | | | | | | | | | | | | | | | | | | Fix the following QDoc warnings: * warning: Can't link to 'QRhiWidget::sampleConut' * warning: Can't link to '`Q_NODISCARD_CTOR' * warning: Invalid '\relates' (already a member of 'QEventLoopLocker') * warning: Unknown command '\relatesalso' * warning: Undocumented parameter 'separator' in QLocale::name() * warning: clang couldn't find function when parsing \fn void QRhiWidget::framePresented() In QAtomicPointer, work around the issue of QDoc not supporting multiple \relates command for a single topic by adding a see-also link to the global qYieldCpu() function. Document the qvariant_cast() overload taking an rvalue reference. Change-Id: I2528eee666149a97a14be059bbed537636d7aa0d Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Doc: Add example categories to Qt Widget examplesMats Honkamaa2023-09-0564-8/+72
| | | | | | | | | Added example categories and fixed some minor typos as well. Task-number: QTBUG-116359 Pick-to: 6.5 6.6 Change-Id: I2e270a1919003f4cea233666b64437e4c2b77121 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Add QRhiWidgetLaszlo Agocs2023-08-142-0/+372
| | | | | | Task-number: QTBUG-113331 Change-Id: I8baa697b4997b05f52acdee0e08d3c368fde5bc2 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
* Doc fix: Use correct initials for Porter and DuffPaul Olav Tvete2023-07-141-1/+1
| | | | | | | | It's Thomas Porter and Tom Duff, not Xavier and Yoann. Pick-to: 6.6 6.5 Change-Id: I2e9345c06c299e9c0475831e21c3b9b85c58a32f Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
* Doc: Update example category namesKai Köhne2023-07-101-1/+1
| | | | | | Pick-to: 6.5 6.6 Change-Id: If4a50c403ed0fb299ac0d9a66f1f606151c55930 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Move simple widget mapper example to manual testTor Arne Vestbø2023-06-302-111/+2
| | | | | | Pick-to: 6.5 6.6 Change-Id: I703843b5ee935794c2e2fd0407f9a1508b088ab6 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Move simple dom model example to manual testTor Arne Vestbø2023-06-301-256/+0
| | | | | | Pick-to: 6.5 6.6 Change-Id: I33120e3f6217ea52bdfdebea8b5faa79d9d3fd68 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Move plug and paint example to manual testTor Arne Vestbø2023-06-303-532/+1
| | | | | | Pick-to: 6.5 6.6 Change-Id: Ibfd870f2f879d6ae68cd6806b0c1ab02da0a3441 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Move pixelator example to manual testTor Arne Vestbø2023-06-301-231/+0
| | | | | | Pick-to: 6.5 6.6 Change-Id: I3ce2bc269a9f77bce3dd41f0127d01091c1408f6 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Move textedit example to manual testTor Arne Vestbø2023-06-291-15/+0
| | | | | | Pick-to: 6.5 6.6 Change-Id: Ic3189044598be8e121c1f065e68e04a3547a87d0 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Move tetrix example to manual testTor Arne Vestbø2023-06-291-407/+0
| | | | | | Pick-to: 6.5 6.6 Change-Id: Ie73d9e35df8513d05d55ffbad1f02584359e3bd0 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Move styles example to manual testTor Arne Vestbø2023-06-291-448/+0
| | | | | | Pick-to: 6.5 6.6 Change-Id: I5738932c0c498ce2075a399274e3b80a04ad9211 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Move stylesheets example to manual testTor Arne Vestbø2023-06-291-64/+0
| | | | | | Pick-to: 6.5 6.6 Change-Id: If0206e63546bf948af4cfb65773e2662c53a5e79 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Move main window example to manual testTor Arne Vestbø2023-06-291-13/+0
| | | | | | Pick-to: 6.5 6.6 Change-Id: I7d9281f173ce9fb24c0f565797b6fbcfba10459f Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Move MDI example to manual testTor Arne Vestbø2023-06-291-14/+0
| | | | | | Pick-to: 6.5 6.6 Change-Id: Ide698a171a4600cb4bac6574b6be74c17f779051 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Modernize EditableTreeModelCarl Schwan2023-06-281-17/+16
| | | | | | | | | - Use unique_ptr instead of manual memory management - Improve consistenty in variable name with the simpletreemodel childrenNumber -> row, m_ prefix for member variables Change-Id: Iface30c2224c2b1db7c623a9e6fcbb449c556f3e Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Modernize SimpleTreeModel exampleCarl Schwan2023-06-281-14/+14
| | | | | | | | Use std::unique_ptr to manage items tree memory allocations. This also use the new string literals operator. Change-Id: Iab002b5dc612b75cef0be10862e263c6c6c013c1 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Move movie example to manual testTor Arne Vestbø2023-06-281-16/+0
| | | | | | Pick-to: 6.5 6.6 Change-Id: Ie185a3c88eced7b8b0fe324b9ef62ab86d38d521 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Move validators example to manual testTor Arne Vestbø2023-06-281-11/+0
| | | | | | Pick-to: 6.5 6.6 Change-Id: Ic91bc89422fb23e3782db69bab2953e7cf8ddf69 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Move item views puzzle example to manual testTor Arne Vestbø2023-06-281-15/+0
| | | | | | Pick-to: 6.5 6.6 Change-Id: Idbb4222861be86275a86f731e75127b8496a08a7 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Move interview example to manual testTor Arne Vestbø2023-06-281-15/+0
| | | | | | Pick-to: 6.5 6.6 Change-Id: I06c77672c3ca08dfd3e50af25ed3e1669462259a Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Move image viewer example to manual testTor Arne Vestbø2023-06-281-320/+0
| | | | | | Pick-to: 6.5 6.6 Change-Id: I4b64033f1a075681ce5b918fdf2e018ad05a7869 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Move icons example to manual testTor Arne Vestbø2023-06-281-805/+0
| | | | | | Pick-to: 6.5 6.6 Change-Id: I08f44448f96a61f780c21d628954879c7b28dce3 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Move graphis view flow layout example to manual testTor Arne Vestbø2023-06-281-28/+0
| | | | | | Pick-to: 6.5 6.6 Change-Id: I713816114b87def9eab79b893d13554f1c37c6a5 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Move fridge magnets example to manual testTor Arne Vestbø2023-06-281-338/+0
| | | | | | Pick-to: 6.5 6.6 Change-Id: I6e40aff63f24dc98ab6b84450d288159f036142b Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Move font sampler example to manual testTor Arne Vestbø2023-06-281-13/+0
| | | | | | Pick-to: 6.5 6.6 Change-Id: I696d9be26edfaadd40579884930b2f061d308a06 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Move fade effect example to manual testTor Arne Vestbø2023-06-281-15/+0
| | | | | | Pick-to: 6.5 6.6 Change-Id: I7f4e1d9b57be2d0ef22eb56d5d1f7abc5074ebae Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Move embedded dialogs example to manual testTor Arne Vestbø2023-06-281-15/+0
| | | | | | Pick-to: 6.5 6.6 Change-Id: I86213aa47def7ebacaa9465a0200cef10871706e Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Move dynamic layouts example to manual testTor Arne Vestbø2023-06-281-91/+0
| | | | | | Pick-to: 6.5 6.6 Change-Id: I34288b2b22cbbfb3b77870f0c71778bcf3d552fb Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Move drag and drop puzzle example to manual testTor Arne Vestbø2023-06-282-22/+0
| | | | | | Pick-to: 6.5 6.6 Change-Id: I859cdb2cf74cd6272c29924c77dab26b4f4c0b6c Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Fix missing references to 'Qt Widgets - Application Example'Tor Arne Vestbø2023-06-272-5/+1
| | | | | | | | Amends eda71105ff9a516059c6dd6643ff446a82edac81 Pick-to: 6.5 6.6 Change-Id: I44fa9acef37667d635d5770ce5d50fc52d92aa88 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
* Fix qdoc link warnings after moving a few examples to manual testsTor Arne Vestbø2023-06-271-2/+1
| | | | | | Pick-to: 6.5 6.6 Change-Id: I81a6e9d52e858c3f733d4c527c70408772813b56 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>