[PySide] QFrame > need custom shadow color and no highlight
Sebastian Elner
sebastian at risefx.com
Wed Jun 6 17:16:09 CEST 2012
Hey,
You probably had a look at the help page and the frame style
combinations? http://qt-project.org/doc/qt-4.8/qframe.html. I dont know
of any way to change the default look of the frame. But maybe you can do
something that you like with stylesheets.
http://doc.qt.nokia.com/4.7-snapshot/stylesheet-reference.html
http://doc.qt.nokia.com/4.7-snapshot/stylesheet-examples.html#customizing-qframe
Cheers
Sebastian
On 06/06/2012 05:36 AM, Frank Rueter | OHUfx wrote:
> 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
>
> _______________________________________________
> PySide mailing list
> PySide at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/pyside
--
Sebastian Elsner - pipeline td - r i s e | fx
t: +49 30 20180300 sebastian at risefx.com
www.risefx.com
r i s e | fx GmbH
Schlesische Strasse 28 Aufgang B, 10997 Berlin
Geschäftsführer: Sven Pannicke, Robert Pinnow
Handelsregister Berlin HRB 106667 B
More information about the PySide
mailing list