This forum has been archived. All content is frozen. Please use KDE Discuss instead.

On a system tray pyqt5 application it doesn't work the right

Tags: None
(comma "," separated)
User avatar
Dimitrios
Registered Member
Posts
659
Karma
0
OS
In this application (python3 qt5)
https://github.com/dglent/meteo-qt/issues/34

the right click on the system tray icon is replaced by another menu with only one entry "Quit"

What is going wrong ?


«The magic continues...»
http://www.mageia.org
Image
User avatar
Dimitrios
Registered Member
Posts
659
Karma
0
OS
Ok, i solved it by defining the context menu in the application:
http://doc.qt.io/qt-5/qsystemtrayicon.h ... ontextMenu

but it adds me one more entry: 'Quit'
so the context menu have two entries for the same action


«The magic continues...»
http://www.mageia.org
Image
User avatar
Dimitrios
Registered Member
Posts
659
Karma
0
OS
In the context menu i have a submenu
The submenu in plasma5 is not expanded, there is no even the arrow which indicates that here are submenus.


«The magic continues...»
http://www.mageia.org
Image
User avatar
einar
Administrator
Posts
3402
Karma
7
OS
Those questions are perhaps better suited for the plasma-devel mailing list. You'll have a higher chance of finding someone knowledgeable on the matter.


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
User avatar
Dimitrios
Registered Member
Posts
659
Karma
0
OS
Ok, thanks for the suggestion


«The magic continues...»
http://www.mageia.org
Image
User avatar
Dimitrios
Registered Member
Posts
659
Karma
0
OS


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell