summaryrefslogtreecommitdiffstats
path: root/examples/corelib
Commit message (Collapse)AuthorAgeFilesLines
...
* examples/: implicit capture of `this` via [=] is deprecated in C++20Ahmad Samir2023-08-181-2/+2
| | | | | Change-Id: I43b04517e9e3a30468c8ce702c9a49968c0ddc4d Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* XBEL stream reader: rework documentationEdward Welbourne2023-08-031-82/+128
| | | | | | | | | | | | | Document previously-undocumented methods. Document in terms of what each thing achieves, not how it does it. The U+00B7 is not the period, it is the centred dot. Fix various anachronisms; the existing docs were out of date with the actual code. Pick-to: 6.6 6.5 Task-number: QTBUG-111228 Change-Id: I17da880e0afd7260aa6f3b7bdddb430c437f4562 Reviewed-by: Jaishree Vyas <jaishree.vyas@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Update Android notifier example to match example guidelineJani Korteniemi2023-08-022-2/+3
| | | | | | | | | Replaced add_subdirectory() with qt_internal_add_example(). Added tags. Task-number: QTBUG-114638 Change-Id: I397c2974a51f0bea391099d1d1abfea39bd29cbe Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
* XBEL stream example: use constructor initializationEdward Welbourne2023-07-172-2/+2
| | | | | | | | | | The treeWidget member of MainWindow could be initialized before the body of the constructor, enabling it to be a *const variable. Pick-to: 6.6 6.5 Task-number: QTBUG-111228 Change-Id: If4a3b04729bc7fa5859ca88183eec376f6992455 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
* XBEL streaming example: renumber xbelreader.cpp's snippet fragmentsEdward Welbourne2023-07-102-6/+12
| | | | | | | | | | I'll be adding docs for parts currently lacking them; fix up the numbering first, to disentangle from "real" changes to docs. Pick-to: 6.6 6.5 Task-number: QTBUG-111228 Change-Id: Ia10f212626bf5ca9fab2b6ba6cf02dbd560a2f02 Reviewed-by: Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io>
* XBEL streaming: shuffle mainwindow parts into more pedagogic orderEdward Welbourne2023-07-102-29/+36
| | | | | | | | | | | | | Renumber the code fragments to match their order, while adding a number for the previously undocumented custom method. Add a brief description of it. Move the createMenus() part up to after it, combine the createActions() with its (as createActions() is long gone, fused into it and sharing its snippet number). Pick-to: 6.6 6.5 Task-number: QTBUG-111228 Change-Id: If0fbcadfa058fc12cbd74ba1897646113bd016b0 Reviewed-by: Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io>
* XBEL stream example: move createMenus() earlierEdward Welbourne2023-07-101-21/+21
| | | | | | | | | | | This will make the description of the type flow more naturally. Pick-to: 6.6 6.5 Task-number: QTBUG-111228 Change-Id: I751bdaf420be7afc9cb4925af4f2a94367840605 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> Reviewed-by: Mate Barany <mate.barany@qt.io> Reviewed-by: Konrad Kujawa <konrad.kujawa@qt.io>
* XBEL streaming: replace images with up-to-date versionEdward Welbourne2023-07-107-3/+3
| | | | | | | | | | | The old screenshot showed an old XBEL file's content, with trolltech URLs. Update to match the new XBEL file's content. Pick-to: 6.6 6.5 Task-number: QTBUG-111228 Change-Id: Idacc31b7786b1e6ed1425857470b1d37227096cd Reviewed-by: Kimmo Leppälä <kimmo.leppala@qt.io> Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
* Update XBEL examples' sample data fileEdward Welbourne2023-07-101-23/+23
| | | | | | | | | | Most links are now https, several have relocated, one entirely rebranded. Same example in both QXmlStream and DOM forms. Pick-to: 6.6 6.5 Task-number: QTBUG-111228 Change-Id: Ifbc58dadc834cf51113adb1c82de971a8768ee58 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Update Qt Documentation link title in XBEL examplesEdward Welbourne2023-07-101-1/+1
| | | | | | | | | | doc.qt.io was described as Qt 5 documentation; no need to version-limit it. Pick-to: 6.6 6.5 Task-number: QTBUG-111228 Change-Id: I1c5abe3d805c2b845a74b9fe454c494fa1eff4c7 Reviewed-by: Topi Reiniö <topi.reinio@qt.io> Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
* Doc: Update example category namesKai Köhne2023-07-104-4/+4
| | | | | | Pick-to: 6.5 6.6 Change-Id: If4a50c403ed0fb299ac0d9a66f1f606151c55930 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Contiguous cache example: minor cleanupAmanda Hamblin-Trué2023-06-302-13/+8
| | | | | | | | Modernised contiguous cache example. Change-Id: I88d67b03ed95a61484873149da16f0d814b26cd8 Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* Revamp bindable subscription exampleAmanda Hamblin-Trué2023-06-281-0/+2
| | | | | | | | | Silence a bogus warning. Pick-to: 6.6 6.5 Task-number: QTBUG-114689 Change-Id: I7267b752e780b0c48cc57a513d12ad504e4c7a30 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* QBindable example: Replace SpinBox connection with QBindableAmanda Hamblin-Trué2023-06-281-3/+6
| | | | | | | | | | Made this change because there was no example of the interaction between QBindable and non-bindable properties. Pick-to: 6.6 6.5 Task-number: QTBUG-114689 Change-Id: Ief7662f8af5e6fab32491418fa35f0daa937819d Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Move permissions example to manual testTor Arne Vestbø2023-06-265-249/+0
| | | | | | Pick-to: 6.5 6.6 Change-Id: If7482ff20079d91ddba26a1abcb06b3054cc72ad Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
* Revamp Bindable Properties ExampleAmanda Hamblin-Trué2023-06-261-2/+1
| | | | | | | | | | | | The use of Q_ASSERT(false) is bogus as we don't need to test here, but want to signal unreachability. Q_UNREACHABLE_RETURN allows us to tell the compiler that the point can't be reached while also getting rid of the no return error. Task-number: QTBUG-114689 Pick-to: 6.6 6.5 Change-Id: I007cd243055237bcc21772a4130a6c1a44fd882d Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Add missing QApplication include in streambookmarks exampleTor Arne Vestbø2023-06-171-1/+1
| | | | | | | | Amends 3ccf2f8308ba33cab575c22ad2e246b987a3dc0c. Pick-to: 6.5 6.6 Change-Id: Ib51777ef9af44aff7fbb813b58eb0fbb74761373 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Examples: "About &Qt" should show info about Qt, not quitEdward Welbourne2023-06-161-1/+1
| | | | | | | | | | | A few examples seem to have copied and pasted a help action "About &Qt" that triggered QCoreApplication::quit. This does not look like best practice. Use QApplication::aboutQt instead. Pick-to: 6.6 6.5 Task-number: QTBUG-111228 Change-Id: I1887a3c999d752a24c7c4d3cabc4a5d63b29b966 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Core examples: consistent #include orderEdward Welbourne2023-06-163-6/+6
| | | | | | | Pick-to: 6.6 6.5 Task-number: QTBUG-111228 Change-Id: I014a895a8abeccc9d17b68fb67c00cea22957fed Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Move RSS listing example to networkingEdward Welbourne2023-06-149-376/+0
| | | | | | | | | | | It's really showing how to request a resource and act on its becoming available. The use of XML to do so is incidental; the use of networking is central. Pick-to: 6.6 6.5 Task-number: QTBUG-111228 Change-Id: Ibcf438c7ef3b2464ddfa8b96a79fb15523e4a468 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
* Do XBEL example's last !QT_NO_... -> QT_CONFIG()Edward Welbourne2023-06-141-1/+1
| | | | | | | | | Amends commit 723e331f0a811294e43207db162698c3ff8fde51 Pick-to: 6.6 6.5 Task-number: QTBUG-111228 Change-Id: Ib9a094ab432a80b8b2dbbbecb497dca13d23a553 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* XBEL stream reader: Brush upFriedemann Kleint2023-06-134-23/+37
| | | | | | | | | | | - Use mime types in the file dialog handling - Use per class includes - Use the configure system instead of QT_NO... defines Pick-to: 6.6 6.5 Task-number: QTBUG-111228 Change-Id: Iea915604e89d3005270f0eb83eca882855589a44 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
* XBEL examples: construct the text of the separators cleanlyEdward Welbourne2023-06-121-1/+3
| | | | | | | | | | | Create the fixed string once and reuse it. Also give a name to the escape code that's its repeated character. Pick-to: 6.6 6.5 Task-number: QTBUG-111228 Change-Id: I3d6416070f1d5490ec137e251daff0e1637fb788 Reviewed-by: Konrad Kujawa <konrad.kujawa@qt.io> Reviewed-by: Marc Mutz <marc.mutz@qt.io>
* XBEL stream reader: shuffle order of functionsEdward Welbourne2023-06-121-18/+18
| | | | | | | | | | | Put readBookmark() first of the constituent parts, as it's the most intelligible (albeit currently undocumented) and gives some clue to the purpose of readTitle(), which is next. Pick-to: 6.6 6.5 Task-number: QTBUG-111228 Change-Id: I91d3d6bf8adc3f3001c90274bb62a9da6bf05362 Reviewed-by: Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io>
* Doc: Fix documentation issuesTopi Reinio2023-06-091-1/+1
| | | | | | | | | | | | | | | | The Qt Widgets Application example was moved to manual tests, and no longer contains the snippet identifiers. Fix \snippet and \quotefile commands to quote similar code snippets from other examples or snippet files. Fix also the following documentation warnings: * No such parameter 'parsingMode' in QUrl::fromEncoded() * Missing image: rsslisting.cpp Pick-to: 6.6 6.5 Change-Id: Ibc989e83abc49837db08628facaf8e5f72b2f123 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
* There is no frank.xbel so don't tell qmake to find itEdward Welbourne2023-06-091-1/+1
| | | | | | | | | | | | Both the DOM and XML stream versions of the XBEL bookmarks example had a frank.xbel in their EXAMPLE_FILES, but there is no such file. So asking qmake to include it is spurious. Pick-to: 6.6 6.5 Task-number: QTBUG-111228 Change-Id: Iec08042d181fc09c2c428685ce841a13161ab273 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* XBEL example - modernize strings: use "..."_L1 for literalsEdward Welbourne2023-06-093-35/+30
| | | | | | | | | | | | | The XML stream reader and writer accept QAnyStringView arguments these days, so passing a QLatin1StringView is entirely sufficient. This makes static functions to provide access to unique QString instances redundant. Linkers are allowed to uniquify the literals the "..."_L1 reference. Pick-to: 6.6 6.5 Task-number: QTBUG-111228 Change-Id: I7f37e97631e11683b9ddd3842fc6233547bed5ff Reviewed-by: Marc Mutz <marc.mutz@qt.io>
* XBEL example: minor simplificationsEdward Welbourne2023-06-092-13/+3
| | | | | | | | | | | | | Pass one function's return as a parameter to another directly. Use a ternary expression rather than conditional initialization. Use initializer-list construction instead of appending to an empty QStringList; and inline the result where it's used. Pick-to: 6.6 6.5 Task-number: QTBUG-111228 Change-Id: I781aedba8dcc4251193b55d82fe684c9b5da241a Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>
* XBEL example: Fix null dereference bugEdward Welbourne2023-06-091-1/+1
| | | | | | | | | | As readXBEL() does call readSeparator(nullptr), the latter should cope with being passed nullptr as item. Pick-to: 6.6 6.5 Task-number: QTBUG-111228 Change-Id: I786e4438b566438448b5d54ff6442c27f1255aa8 Reviewed-by: Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io>
* XBEL example: use nullptr rather than 0 for null pointersEdward Welbourne2023-06-091-3/+3
| | | | | | | Pick-to: 6.6 6.5 Task-number: QTBUG-111228 Change-Id: I7cb95ab6f84854d36a949d1ce667cb80a9c626be Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Examples: Do not add the same category twiceEike Ziller2023-05-261-1/+0
| | | | | | | | | Amends 1371cd107a2dab2a29e3e10e9bb823a9ff04a3a9 Task-number: QTCREATORBUG-29197 Change-Id: I0dd4a08a597c237fd09f788cafb79af755953d0d Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
* Document the RSS Listing exampleEdward Welbourne2023-05-255-98/+170
| | | | | | | | | | | | | | Add an image and a QDoc file, remove the (in some cases misleading) doc comments from the CPP sources, group the slots all together in the source so as to document them together, group the two private methods together. Dust the header lightly with comments to classify the class members and enclose relevant parts in QDoc snippet markers. Task-number: QTBUG-111228 Pick-to: 6.5 Change-Id: I0090fb45ce8d5a8f168fde9b3247d541b709c1b2 Reviewed-by: Andreas Eliasson <andreas.eliasson@qt.io> Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
* rsslisting example: use initializer list to construct string listEdward Welbourne2023-05-251-3/+1
| | | | | | | | | | It's cleaner than declaring, using << to populate, then using once. Just construct it and use it where it's needed. Task-number: QTBUG-111228 Pick-to: 6.5 Change-Id: Id10483b26937a97899d656c4b26f27b37b8d39b6 Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>
* rsslisting example: rename a slot to reflect what it doesEdward Welbourne2023-05-252-3/+3
| | | | | | | | | | | | | Many slots can be connected to one signal so, unlike a virtual method that must be named for the situation in which it is called, a slot can (so should) be named for what it does, rather than naming it to match the signal it's connected to. Task-number: QTBUG-111228 Pick-to: 6.5 Change-Id: If2fa40cac0e51a243054526d7d2997fdd54aea3e Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> Reviewed-by: Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io>
* RSSListing: remove metaDataChanged slot to handle redirectsEdward Welbourne2023-05-252-10/+0
| | | | | | | | | | | QNetworkAccessManager takes care of doing that by default anyway, these days. Task-number: QTBUG-111228 Pick-to: 6.5 Change-Id: I890d258599e22efb6fc6ce0140304a97edcbb3f8 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> Reviewed-by: Øystein Heskestad <oystein.heskestad@qt.io>
* Turn itemActivated() slot of RSS listing example into a lambdaEdward Welbourne2023-05-252-10/+2
| | | | | | | | | | | | It needs nothing but the parameter it is passed and has no material interaction with the rest of the RSSListing class, so there's no point devoting a slot to it, much less a public one. Task-number: QTBUG-111228 Pick-to: 6.5 Change-Id: I46d572982197550801c6fa4425453fc670c6f2f1 Reviewed-by: Marc Mutz <marc.mutz@qt.io> Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
* Doc: fix links to examplesVolker Hilsheimer2023-05-241-2/+2
| | | | | | | | | Remove the xml prefix, only reference the example by title. The streambookmarks example is gone, so remove that link. Change-Id: Ie3a77be24f60fca9e8f9ef0323f0ea5ffc904075 Reviewed-by: Safiyyah Moosa <safiyyah.moosa@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
* RSS listing example: prefer setDevice() over addData(readAll())Edward Welbourne2023-05-161-13/+9
| | | | | | | | | | | | | | | The network reply is a QIODevice, so the QXmlStreamReader can be set to read from it directly, which it might potentially do incrementally, rather than by reading all the data in one go. In the process, change the set-up of the reply to first check that it got a valid URL, then check it got a reply, before doing things with that reply. Pick-to: 6.5 Task-number: QTBUG-111228 Change-Id: I3642e24e0d10721e4a0325b35a94dcb5dfbcd4e6 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
* Shrink the CBOR dumper example's imageEdward Welbourne2023-05-151-0/+0
| | | | | | | Apply optipng -o7 -zm9 -strip all to the image to make it more compact. Change-Id: Iebfc1f767759b5beac47bd7efa61d1c655163f03 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
* rsslisting example: fix bug in construction of title stringEdward Welbourne2023-05-151-4/+3
| | | | | | | | | | | | | | | | | | The correct time to clear titleString and linkString is at the start of the item element, to avoid not only the left-overs from a previous item but also any stray titles and links that don't belong to any item. The channel element, that contains the items, may also have title and link elements. This, indeed, lead to the first entry in the displayed table having a "Qt Blog" prefix on its blog-post's title. Fortunately the link was already being set, usually to empty, due to the lack of rss:about attributes on item elements. Pick-to: 6.5 Task-number: QTBUG-111228 Change-Id: I16647e2498b58caaafa6e88ef73f0d934a1f8396 Reviewed-by: Alex Blasche <alexander.blasche@qt.io> Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
* rsslisting example: shuffle parts of constructor for clarityEdward Welbourne2023-05-151-8/+4
| | | | | | | | | | Group related things together, improve the logical flow of the code. Pick-to: 6.5 Task-number: QTBUG-111228 Change-Id: If3eb577b74128b305ca5fb3074168280ec2d4db8 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io> Reviewed-by: Marc Mutz <marc.mutz@qt.io>
* rsslisting example: move default URL to main()Edward Welbourne2023-05-153-4/+5
| | | | | | | | | | | | | It felt more natural that the RSSListing class would be agnostic about the default URL, so let it be a constructor parameter. In the process, update the URL to what the old one now redirects to (thanks to Ivan Solovev for spotting that) and make the constructor explcit (thaks to Ievgenii Meshcheriakov for suggesting this). Task-number: QTBUG-111228 Pick-to: 6.5 Change-Id: I9f4c0d126e0872bb4ec6e6bb41add7e9d2a9537f Reviewed-by: Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io>
* rsslisting example: Tidy up #include usageEdward Welbourne2023-05-153-7/+4
| | | | | | | | | | | | | | | | Replace one #include with a forward-declaration - in rsslisting.h QUrl is only passed by reference to a function. Shuffle order of existing forward declarations to be alphabetic, in the process. Shuffle #include order in sources so that this example's own headers appear before the Qt ones. Pick-to: 6.5 Task-number: QTBUG-111228 Change-Id: I69a9e091c77f9d3190c0217c8bd9262e056f66fc Reviewed-by: Marc Mutz <marc.mutz@qt.io> Reviewed-by: Ivan Solovev <ivan.solovev@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* rsslisting example (coding style): split a long line, purge stray bracesEdward Welbourne2023-05-151-5/+4
| | | | | | | Pick-to: 6.5 Task-number: QTBUG-111228 Change-Id: Ic919d4dee74823f11c55d286beba447d45111754 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
* rsslisting example (coding style): fix horizontal spacingEdward Welbourne2023-05-152-3/+3
| | | | | | | | | | Remove space after *, insert space after comma. Pick-to: 6.5 Task-number: QTBUG-111228 Change-Id: I7525715dede20b45241efaf3f9540c896b1455c7 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io> Reviewed-by: Konrad Kujawa <konrad.kujawa@qt.io>
* rsslisting example: remove unused include and surplus blank linesEdward Welbourne2023-05-152-7/+0
| | | | | | | | Pick-to: 6.5 Task-number: QTBUG-111228 Change-Id: Ibfa82aef67eaf6ba758dade30a4c9542f2836123 Reviewed-by: Mate Barany <mate.barany@qt.io> Reviewed-by: Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io>
* savegame example: clarify that CBOR can be readEdward Welbourne2023-05-151-5/+6
| | | | | | | | | | | | | The documentation talked about using CBOR to keep folk from reading, where (of course) it merely makes it more obscure (and compact). Make clear that this just makes it less easy and mention the tool that makes it easy again. Task-number: QTBUG-111228 Pick-to: 6.5 Change-Id: I472acda4b7533db41ab0e78b694e0256b34d2b40 Reviewed-by: Marc Mutz <marc.mutz@qt.io> Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
* Add metadata to serialization examplesEdward Welbourne2023-05-153-0/+4
| | | | | | | | | | | | | | There's no separate category for {de,}serialization, so I've put them in Input/Output; and at least some of them are relevant to transmission over the network, so include that as a tag, so that someone writing a network application that wants to use what they illustrate gets a chance of being lead to it. Pick-to: 6.5 Task-number: QTBUG-111228 Change-Id: Ie9f6dbaf85aed852e9f64eba05ec8c5fe0a7382d Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> Reviewed-by: Marc Mutz <marc.mutz@qt.io>
* rsslisting example: don't leak the RSSListing objectEdward Welbourne2023-05-091-2/+2
| | | | | | | | | | | It was new'd and unparented, so its destructor was never getting called. A stack instance will do just fine. Pick-to: 6.5 Task-number: QTBUG-111228 Change-Id: If362b0e1e5b50d711a8fe8e01a8830034edf5363 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io> Reviewed-by: Dennis Oberst <dennis.oberst@qt.io>
* Update cbordump image to a higher-resolution oneEdward Welbourne2023-05-091-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Incidentally using reversed video, too, as that's what came naturally to the terminal I was using. File is smaller, but text in the new image is considerably more readable and the image is bigger. The examples guideline calls for an image giving some idea what the example is about, with a 4:3 or 5:4 aspect ratio. An image shorter than its width wasn't practical, and getting a useful amount of information in a height less than 3/2 of the width would have required widening into blank space purely to satisfy the aspect ratio. The prior image's ratio was about 12:7, the new one's is roughly 2:3. The old image showed the start of cbordump -a output, which is rather less illuminating than the default output of formatted data; it's also rather verbose, so was cut off part way through. It does, however, illustrate how the annotated form might be useful for debug purposes. The image also had a lot of blank space to the right of the text of interest, wasting roughly half of its width; it could easily have been cropped to 1:1 without loss of information. As example data-set, it used ../savegame/save.dat, but without any hint to how to generate that. I decided to include a hint to how to generate a CBOR data file to dump, then show the standard output and only the beginnings of the annotated output, as the latter (even on its own) would make the aspect ratio considerably taller. In the context of the standard display, the preamble of the annotated one gives a reasonable feel for what's going on, without belabouring the point. Pick-to: 6.5 Task-number: QTBUG-111228 Change-Id: Ic54893c483607e95627a50db76a0d9918744c07e Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>