Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Is QSystemTrayIcon Example removed from Qt5?
QtWS25 Last Chance

Is QSystemTrayIcon Example removed from Qt5?

Scheduled Pinned Locked Moved General and Desktop
7 Posts 3 Posters 2.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    geotavros
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      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.

      (Z(:^

      1 Reply Last reply
      0
      • G Offline
        G Offline
        geotavros
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          I have found it in 5.2.0-src/qtbase/examples/widgets/desktop/systray.

          (Z(:^

          1 Reply Last reply
          0
          • G Offline
            G Offline
            geotavros
            wrote on last edited by
            #5

            Thanks. But the documentation page is still missing, right?
            http://qt-project.org/doc/qt-5/qsystemtrayicon.html

            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.

            1 Reply Last reply
            0
            • sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #6

              That may very well be a bug, then.

              (Z(:^

              1 Reply Last reply
              0
              • JKSHJ Offline
                JKSHJ Offline
                JKSH
                Moderators
                wrote on last edited by
                #7

                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

                Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved