Is QSystemTrayIcon Example removed from Qt5?
-
Qt used to have this example and now it is gone in Qt5.
http://qt-project.org/doc/qt-4.8/desktop-systray.html
Is this intentional or is this a bug? -
The class is still there in Qt 5 (see "here":http://qt-project.org/doc/qt-5/QSystemTrayIcon.html). Try using the example from Qt 4. It should require just a few modifications to port it.
-
I have found it in 5.2.0-src/qtbase/examples/widgets/desktop/systray.
-
Thanks. But the documentation page is still missing, right?
http://qt-project.org/doc/qt-5/qsystemtrayicon.htmlThere is a text reference on that page to see the example, but the page was removed:
See also QDesktopServices, QDesktopWidget, Desktop Integration, and System Tray Icon Example. -
That may very well be a bug, then.
-
Hi,
As you've noticed, numerous existing examples have gone "missing" in Qt 5 (the code is still there, but they no longer get built as part of the documentation).
Other examples are "bare-bones": They have screenshots and links to source code, but have no descriptions (e.g. http://qt-project.org/doc/qt-5/qtquick-demos-samegame-example.html )
[quote author="geotavros" date="1391421287"]I could help port it if needed for new Qt version[/quote]The Qt documentation team could always use some help :) The Qt Project is under Open Governance, so anyone can submit patches. If you're able to help, that'd be great!
For your reference, here are the changes that allowed the Same Game example (among others) to appear in the "Qt Quick Code Samples":http://qt-project.org/doc/qt-5/qtquick-codesamples.html page:
- https://codereview.qt-project.org/#patch,sidebyside,55107,2,examples/quick/demos/samegame/doc/src/samegame.qdoc
- https://codereview.qt-project.org/#patch,sidebyside,55107,2,src/quick/doc/src/examples.qdoc
The Same Game example was in a similar situation as the QSystemTrayIcon example -- the code was there, but the page wasn't visible until samegame.qdoc was added