qtbase/examples/widgets
Giuseppe D'Angelo eeead68995 Examples: fix a couple of nodiscard warnings from QFile::open
In one case, the code simply checked for isOpen afterwards; refactor
it to use QFile::open's result. In another case, a file was opened
from the resource system, so add a check.

Pick-to: 6.9 6.8
Change-Id: I5f4c22dd5ce678f15c9c1609c4228d50a2b32a1d
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2025-04-24 10:44:03 +01:00
..
animation Add copyright and licensing to build system files missing it 2024-05-21 17:23:21 +02:00
desktop systray example: if there is no system tray, allow waiting for one 2024-06-05 01:40:10 +00:00
dialogs Standard dialogs example: Fix compilation with QT_NO_CAST_FROM_ASCII 2025-01-21 07:46:39 +01:00
doc Correct childNumber() reference in editable tree model example 2025-02-18 21:43:55 +00:00
draganddrop Examples: fix a couple of nodiscard warnings from QFile::open 2025-04-24 10:44:03 +01:00
gallery Do not lie about keyboard shortcut to macOS users 2025-02-03 13:01:39 +01:00
gestures CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
graphicsview Replace qdebug.h includes in public headers with forward-declarations 2025-01-15 13:28:16 +02:00
itemviews examples: check return value of QFile::open() calls 2025-01-22 19:53:25 +02:00
layouts CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
mainwindows CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
painting Use QPainterStateGuard in examples 2024-12-17 19:59:01 +01:00
qnx/foreignwindows Doc: Fix license of foreignwindows example 2023-06-30 18:46:54 +02:00
rhi Examples: port from QCheckBox::stateChanged to checkStateChanged 2025-03-26 14:57:03 +01:00
richtext CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
tools Show Custom Completer example as part of UI Components category 2024-10-31 17:36:09 +02:00
touch CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
tutorials Notepad example: Use theme icons 2025-01-28 20:35:19 +01:00
widgets Use QPainterStateGuard in examples 2024-12-17 19:59:01 +01:00
CMakeLists.txt Correct license for examples files 2024-03-07 11:06:43 +01:00
widgets.pro Add QRhiWidget 2023-08-14 17:05:36 +02:00