Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QMenu in QSytemTrayIcon misplaced in Windows 10
simgunz last edited by
I have written an addon for the software Anki in PyQt5. The addon aims at adding a system tray icon to the software.
The code of the addon is reported here:
The tray icon is created in the method
createSysTray. The tray has a QMenu associated to it.
The problem is that when right clicking the tray icon the QMenu is displayed in the wrong position. See the original issue reported here for an image displaying the problem.
I wrote a simple test script (also reported in issue #1 on github) to check if the problems appears also in a simple QApplication and it does not. The code to create the QSystemTrayIcon is pretty similar.
To test the full add-on one needs to install Anki 2.1 and then install the add on number 85158043 from
Tools > Addons.
I really have no clue where the problem comes from. Maybe someone here can help me debugging the problem or point me in the right direction.