summaryrefslogtreecommitdiffstats
path: root/examples/widgets/doc/src
Commit message (Collapse)AuthorAgeFilesLines
* Replace treemodel-structure.png with an svg in simpletreemodel.qdocMate Barany30 hours2-2/+2
| | | | | | | Task-number: QTBUG-137747 Pick-to: 6.10 Change-Id: I88ce7c5291f7f4c915a34a937f536ce4f1f6d8da Reviewed-by: Matthias Rauter <[email protected]>
* Doc: Fix broken links in Qt WidgetsKai Köhne2025-06-032-2/+2
| | | | | | | | | The iQRhiWidget API got changed in commits acebb97b5880, acebb97b58807d1d591. Pick-to: 6.8 6.9 6.10 Change-Id: I7791b1a61d94f33ba01cfe22e63ecfdc7b81022b Reviewed-by: Laszlo Agocs <[email protected]> Reviewed-by: Volker Hilsheimer <[email protected]>
* Doc: Fix auto-links to deprecated functionsDavid Boddie2025-05-311-1/+1
| | | | | Change-Id: Id4456eef3440734add2d804d186966e253335b7c Reviewed-by: Richard Moe Gustavsen <[email protected]>
* Correct childNumber() reference in editable tree model exampleAxel Spoerl2025-02-181-1/+1
| | | | | | | | | | childNumber() has been renamed to row() in the code, but not in the documentation. Correct it. Pick-to: 6.9 6.8 6.5 Change-Id: Ibe6f1f27c0dd1982ff663dc680738babf2db87d7 Reviewed-by: Paul Wicking <[email protected]>
* Use QPainterStateGuard in examplesFriedemann Kleint2024-12-173-17/+14
| | | | | | | | Complements 9ecf47a8a8d11227ecf192246d7df7c2c4dc9105. Pick-to: 6.9 Change-Id: I65456f8fd34bf9d316b72c4286e1b15789309f7c Reviewed-by: Christian Ehrlicher <[email protected]>
* Doc: Move Easing Curve example into Graphics categoryPaul Wicking2024-11-121-1/+1
| | | | | | | | | | This example is for the animation framework (graphics), it isn't about multimedia. Use the correct category. Pick-to: 6.8 Change-Id: I32f0ce13a5496c8fbc871d8f2454575c25684eba Reviewed-by: Kai Köhne <[email protected]> Reviewed-by: Alessandro Portale <[email protected]>
* Docs: Update the screenshots for the Qt Widgets examplesAlexei Cazacov2024-10-113-1/+226
| | | | | | | | | | This commit updates the screenshots for the Qt Widget examples. It also removes several unused screenshots and adds several minor edits. Task-number: QTBUG-69988 Pick-to: 6.8 Change-Id: I23b90fd6c8b798169d158854609c09ef3f1c1a20 Reviewed-by: Paul Wicking <[email protected]>
* Replace 'Qt Designer' and 'Qt Widgets Designer' in codeKai Köhne2024-05-161-4/+4
| | | | | | | | Use new term in examples, code comments, error messages and and mime types. Task-number: QTBUG-122253 Change-Id: I355452d6eb02a7a0ffbb20acf82ddb8ebbfa4837 Reviewed-by: Joerg Bornemann <[email protected]>
* Convert "Color Editor Factory" Example to snippetsMohammadHossein Qanbari2024-04-191-132/+0
| | | | | | | | | | The color editor factory example is removed and part of the codes are used as snippets. Fixes: QTBUG-119985 Pick-to: 6.7 6.6 Change-Id: I421e473e7db09a5af7543b80b87a338d8ff2ab7e Reviewed-by: Axel Spoerl <[email protected]>
* Convert Group Box Example to snippets and screenshotsMohammadHossein Qanbari2024-04-181-117/+0
| | | | | | | | | | | | | Remove the Group Box Example from the repository, eliminating the associated example codes, screenshot, and documentation file. The only relevant portion used in the QGroupBox class has been relocated to the existing snippet file. Additionally, all references to this example across other files have been removed. Fixes: QTBUG-119980 Pick-to: 6.7 6.6 Change-Id: I66f9dd9dab1fe64f2d20424af3acd135201827d2 Reviewed-by: Axel Spoerl <[email protected]>
* 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ö <[email protected]>
* Menu example: Use theme iconsFriedemann Kleint2024-02-011-1/+2
| | | | | | Pick-to: 6.7 Change-Id: I7f77457b439919e7a7882f23e21e648d8965859a Reviewed-by: Volker Hilsheimer <[email protected]>
* 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ö <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]> Reviewed-by: Andreas Eliasson <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]> Reviewed-by: Axel Spoerl <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* Refurbish the clock exampleMatthias Rauter2023-11-131-37/+43
| | | | | | | Fixes: QTBUG-118871 Pick-to: 6.6 Change-Id: I0a1a6444cb381d49adbc39e73d7862c9cfe61dce Reviewed-by: Volker Hilsheimer <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]> Reviewed-by: Paul Wicking <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* Add QRhiWidgetLaszlo Agocs2023-08-142-0/+372
| | | | | | Task-number: QTBUG-113331 Change-Id: I8baa697b4997b05f52acdee0e08d3c368fde5bc2 Reviewed-by: Andy Nichols <[email protected]>
* 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 <[email protected]>
* Doc: Update example category namesKai Köhne2023-07-101-1/+1
| | | | | | Pick-to: 6.5 6.6 Change-Id: If4a50c403ed0fb299ac0d9a66f1f606151c55930 Reviewed-by: Alex Blasche <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>