Hi. How to set style for context menu in QTreeWidget. I have application with top menu containing come QActions and want some of theese actions appear when I rightclick inside QTreeWidget.
Qt Code:
myTree.setStyleSheet("QWidget {background-color: #fcfcfc}");To copy to clipboard, switch view to plain text mode
Does the trick setting background of context menu, but also sets background for QTreeWidget itself and that I dont want. How to set style for context menu only? Is there some myTree.setStyleSheet("QWidget:contextMenu {background-color: #fcfcfc}");?
Bookmarks