qtbase/examples/widgets
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
..
animation CMake: Add deployment API to our examples 2024-03-25 15:49:46 +00:00
desktop systray example: if there is no system tray, allow waiting for one 2024-06-05 08:01:00 +00:00
dialogs CMake: Add deployment API to our examples 2024-03-25 15:49:46 +00:00
doc Convert "Color Editor Factory" Example to snippets 2024-04-19 13:46:49 +00:00
draganddrop CMake: Add deployment API to our examples 2024-03-25 15:49:46 +00:00
gallery CMake: Add deployment API to our examples 2024-03-25 15:49:46 +00:00
gestures CMake: Add deployment API to our examples 2024-03-25 15:49:46 +00:00
graphicsview CMake: Add deployment API to our examples 2024-03-25 15:49:46 +00:00
itemviews Convert "Color Editor Factory" Example to snippets 2024-04-19 13:46:49 +00:00
layouts CMake: Add deployment API to our examples 2024-03-25 15:49:46 +00:00
mainwindows CMake: Add deployment API to our examples 2024-03-25 15:49:46 +00:00
painting CMake: Add deployment API to our examples 2024-03-25 15:49:46 +00:00
qnx/foreignwindows Doc: Fix license of foreignwindows example 2023-06-30 18:46:54 +02:00
rhi CMake: Add deployment API to our examples 2024-03-25 15:49:46 +00:00
richtext CMake: Add deployment API to our examples 2024-03-25 15:49:46 +00:00
tools CMake: Add deployment API to our examples 2024-03-25 15:49:46 +00:00
touch CMake: Add deployment API to our examples 2024-03-25 15:49:46 +00:00
tutorials CMake: Add deployment API to our examples 2024-03-25 15:49:46 +00:00
widgets Convert Group Box Example to snippets and screenshots 2024-04-18 19:11:21 +00:00
CMakeLists.txt Correct license for examples files 2024-03-08 18:38:46 +00:00
widgets.pro Add QRhiWidget 2023-08-14 17:05:36 +02:00