* * *

Author Topic: TTrayIcon under QT/Linux  (Read 627 times)


  • Full Member
  • ***
  • Posts: 218
TTrayIcon under QT/Linux
« on: June 03, 2018, 01:12:56 pm »
I try to use TTrayIcon. Under Windows it workes as expected, under Linux using the widgetset GTK2 as well. But when using QT I couldn't change it after it was assigned firstly. When I try to change the symbol with TrayIcon.Icon.Assign(APicture.Bitmap); then there will be a blank space in the tray area instead of the symbol. This behaviour is under LinuxMint 17 Cinnamon. On Raspbian on the Raspberry (also QT) the symbol doesn't even show in the first place, but a black square is seen instead.

My questions:
1) Is this a known issue, is it solvable? Could it be that I use a wrong icon file type?
2) Is it possible to let TTrayIcon use GTK within a "QT-application"?

Attached a minimum project, after clicking "Init" it should show a tray icon "A" and change each second between two icons "A" and "B". As I described above I just see the "A" then it vanishes. The widgetset "qt" is defined in the project options.




  • Hero Member
  • *****
  • Posts: 977
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: TTrayIcon under QT/Linux
« Reply #1 on: June 03, 2018, 01:47:29 pm »
Please open an issue and attach example project.


  • Full Member
  • ***
  • Posts: 218
Re: TTrayIcon under QT/Linux
« Reply #2 on: June 03, 2018, 04:25:42 pm »
Thought I already replied you... But now~

I Opened a new issue in the bug tracker:




Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus