Unsolved Shield the right-click menu on the taskbar
-
The Qt program shields the right-click menu on the taskbar and the preview image when the mouse is moved to the top. How to achieve this? In addition, how to capture the close event of the taskbar right-click menu and the close button of the preview window?
-
@Nan-Feng said in Shield the right-click menu on the taskbar:
The Qt program shields the right-click menu on the taskbar and the preview image when the mouse is moved to the top
What does "shields" mean here? What preview image do you mean? What does "moved to the top" mean exactly (to the top of what?)? Can you please explain better?
"how to capture the close event of the taskbar right-click menu and the close button of the preview window?" - how do you show the menu? What is this preview window?
-
please check the photo.
Link: https://pan.baidu.com/s/1SVPgSYP2QO4Npna9jre_XA
Extraction code: 0000When the program is running, it is displayed on the taskbar. Right-click and there will be a menu [Close, pin to the taskbar...]
Mouse over, there will be a thumbnail, move to the upper right corner of the thumbnail, there is a close button,
How to prohibit right-clicking? And how to block the thumbnail, can you intercept the event of the close button on the thumbnail? -
@Nan-Feng I'm not sure your requirements can be implemented with Qt, as the taskbar buttons are handled by the operating system.
https://doc.qt.io/qt-5/qwintaskbarbutton.htmlTo capture close event override https://doc.qt.io/qt-5/qwidget.html#closeEvent