PDA

View Full Version : Changing color to the default context menu



ciarlond
5th March 2012, 16:58
Hi

I would like to change the background color to the default context menu. I am referring to the DefaultContextMenu that appears when right-clicking on the QLineEdit.
I tried changing the stylesheet as follow but it does not produce any changes.

QLineEdit:ContextMenu {
background-color: rgb( 224,224,224);
}

Is there a way to identify the context menu background color? (via style-sheet)

thanks

davide

high_flyer
6th March 2012, 10:40
You can customize a QMenu - your context menu IS a QMenu - so that should work.