Qt QAction ToolTip display problems, prevent the default display on the toolbar tooltip

Prevent toolbutton set the default action in the toolbar

Problems encountered: tooptip displays, online search solutions to rewrite filter out event.tooptip incident, but said that is not easy to understand, record:

With pyqt5:

 

 This is not enough, but also in action in calling settooptip method, passing in a random character

 

Finally, to solve!

Guess you like

Origin www.cnblogs.com/zhgmen/p/12038381.html