Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-28316

QSystemTrayIcon does not work without QApplication

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4: Low P4: Low
    • None
    • 5.0.0 Beta 2
    • None
    • Custom QPA, QML application

      Now that there's a way in QPA to provide a platform specific implementation of SystemTrayIcon, it may not make a lot of sense that QSystemTrayIcon API still requires QApplication to be run. But it does.

      In the case I am working on, the application inherits from QCoreApplication (we do not use widgets at all), and our QPA handles system tray icon externally without any need for QtWidgets. But if we want the system tray icon to work, we need any application using this QPA to inherit from QApplication at least.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            srutledg Shawn Rutledge
            jdapena Jose Dapena Paz
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes