qtbase/examples
Shawn Rutledge f86b4bf2a5 systray example: if there is no system tray, allow waiting for one
Demonstrate that QSystemTrayIcon can wait for a tray to become
available. For example QDBusTrayIcon::init() connects to
QDBusServiceWatcher::serviceRegistered to detect the StatusNotifier
service becoming available. So instead of unconditionally quitting
if there is no tray, allow the user to choose to "Ignore" its absence,
or "Close" the application. Realistically, applications in which a tray
icon is an optional feature should not quit just because there's no
tray.

Task-number: QTBUG-94871
Change-Id: Ia8efd95fcfb9ff7c915ee8e259e9a0903fa7bcb3
Pick-to: 6.5
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Reviewed-by: Ilya Fedin <fedin-ilja2010@ya.ru>
Reviewed-by: Dmitry Shachnev <mitya57@gmail.com>
(cherry picked from commit 82cba0ca5c)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 4c686817ec)
2024-06-05 08:01:00 +00:00
..
aggregate
corelib Remove check for Qt version > 4 that's not useful now 2024-04-25 11:47:34 +00:00
dbus CMake: Add deployment API to our examples 2024-03-25 15:49:46 +00:00
gui rhiwindow: Set DPR on image texture to ensure DPR-agnostic drawing 2024-04-19 10:57:57 +00:00
network CMake: Add deployment API to our examples 2024-03-25 15:49:46 +00:00
opengl CMake: Add deployment API to our examples 2024-03-25 15:49:46 +00:00
qmake examples: port qmake examples to new connection style 2022-12-21 22:52:17 +02:00
qtconcurrent CMake: Add deployment API to our examples 2024-03-25 15:49:46 +00:00
qtestlib CMake: Add deployment API to our examples 2024-03-25 15:49:46 +00:00
sql CMake: Add deployment API to our examples 2024-03-25 15:49:46 +00:00
vulkan CMake: Add deployment API to our examples 2024-03-25 15:49:46 +00:00
widgets systray example: if there is no system tray, allow waiting for one 2024-06-05 08:01:00 +00:00
xml CMake: Add deployment API to our examples 2024-03-25 15:49:46 +00:00
CMakeLists.txt CMake: Allow building all examples as standalone just like tests 2024-03-20 09:57:11 +01:00
README
examples.pro Remove undocumented embedded examples 2023-11-17 19:39:33 +01:00

README

Qt is supplied with a number of example applications that have been
written to provide developers with examples of the Qt API in use,
highlight good programming practice, and showcase features found in each of
Qt's core technologies.


Documentation for examples can be found in the Examples section
of the Qt documentation.