0

How can I make my application appear in the system tray?

I already have a QDialog widget with parent as qApp->mainWidget() and disabled the task bar entry. Now I need it to appear in the system tray.

I am using Qt 3.3

Samuel Harmer
  • 4,264
  • 5
  • 33
  • 67
Nik
  • 31
  • 6

1 Answers1

0

I'll start by saying you're probably wasting your time. I can't seem to find anything in the Qt 3.3 documentation which alludes to what you want. However in Qt 4.8 there is a QSystemTrayIcon class, which was introduced in Qt 4.2.

Normally, when a new class replaces an old class the Qt documentation says so, therefore I doubt any code was written to handle system tray icons across the supported platforms in 3.3.

Furthermore, even if you do find something in 3.3, it's unlikely it will work now as most OSes are likely to have changed their GUIs since then.

My answer? Update to 4.8 and use QSystemTrayIcon.

Samuel Harmer
  • 4,264
  • 5
  • 33
  • 67
  • Thanks for quick reply, and i had stop looking on that. Now i am looking to make that QDialog widget with null parent always visible not stays on top (WStyle_StaysOnTop) because this flag block access for main application. I need on screen keyboard functionality to my QDilog. – Nik Jan 17 '12 at 12:21