Issue
I have tried PreventContextMenu as well as NoContextMenu, but the menu still pops up when I right click the scroll area. Here is a screenshot of my problem:
The menu items are basically "Scroll to here","Left edge", etc.
Solution
You have to set it on the scrollbar, not the scrollarea:
scroll_area.horizontalScrollBar().setContextMenuPolicy(QtCore.Qt.NoContextMenu)
Answered By - eyllanesc
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.