[PySide] QFrame > need custom shadow color and no highlight

Frank Rueter | OHUfx frank at ohufx.com
Wed Jun 6 05:36:48 CEST 2012


Hi everyone,

I have a QFrame set to "Panel" and "Sunken" style like this:

import sys
from PySide import QtGui

app = QtGui.QApplication( sys.argv )
fr = QtGui.QFrame()
fr.setFrameStyle( QtGui.QFrame.Panel | QtGui.QFrame.Sunken )
fr.setLineWidth( 3 )

fr.show()
sys.exit( app.exec_() )


I am trying to control the shadow and highlight colours so I can darken 
the shadow and get rid of the highlight.

I've been searching online but can't find the answer.

Does anybody know how to do this?

Cheers,
frank




More information about the PySide mailing list