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 want the toolbar to be unhidable. Is there a way to do this?
+5
A:
Use setContextMenuPolicy (Qt::NoContextMenu) for the main window of the toolbar.
Ariya Hidayat
2009-03-16 17:22:15
Hey, you're on stackoverflow. Hi, I'm a fan!
2009-03-17 11:32:18
It does not work, I've tried
Sergey Skoblikov
2009-03-17 13:17:54
I mistyped and corrected it. NoContextMenu should be for the main window, not the toolbar.
Ariya Hidayat
2009-03-17 22:52:56