Is QSystemTrayIcon Example removed from Qt5?
Qt used to have this example and now it is gone in Qt5.
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.
Yes, I know. I just spent some time looking for it in Qt Creator and didn't find, so I wonder if it is a bug or intentional. I could help port it if needed for new Qt version
I have found it in 5.2.0-src/qtbase/examples/widgets/desktop/systray.
Thanks. But the documentation page is still missing, right?
There 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.
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:
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