Friday, May 3, 2024
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 1147  / 2 Years ago, tue, november 1, 2022, 12:07:12

There is this old thread of mine: How do I create a working indicator with Qt/C++? where I was suggested to use the QSystemTray library for making a tray icon in Ubuntu for my application.



Sniqt is a program that takes care of the rest. As known, Ubuntu has got rid of tray icons. Instead, it now uses indicators and only indicators. Sniqt converts the Qt tray icons into working indicators.



The problem is that it doesn't do a very decent convertion. Actions like single click, middle click etc do not work, while they do in systems that support tray icons.



Is there a way to have these actions back? Can I use QSystemTray icon and still have these interesting (and very helpful, in my occasion) actions in Ubuntu?



I would be glad to know the answer to the other thread I talked about earlier (how to make a working indicator using the GTK libraries and prevent the crash), as well.



Link for Sniqt bug: https://bugs.launchpad.net/sni-qt/+bug/1027652


More From » application-development

 Answers
4

It seems that Qt does not support this thing, at least on Ubuntu Unity, even if it has a signal 'activated'.
So I would recommend you to use GTK and a normal trayicon, I see no alternative with Qt.
You may contact the developers of Qt for clarification on this.


[#33932] Wednesday, November 2, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
warrdel

Total Points: 356
Total Questions: 103
Total Answers: 118

Location: Bangladesh
Member since Sat, Jan 23, 2021
3 Years ago
;