c++qtqtoolbar

Is there a way to prevent the hide operation of a toolbar?


In Qt, if I right-click on a toolbar the menu will be shown that allows me to hide the toolbar. I need to disable this functionality because I don't want the toolbar to possible to hide. Is there a way to do this?


Solution

  • Inherit QToolbar and reimplement contextMenuEvent().