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

Frank Rueter | OHUfx frank at ohufx.com
Wed Jun 6 23:45:06 CEST 2012


Thanks Aaron. I will have to look into the palette thing once I'm done 
with implementing the functionality.

On 6/06/12 9:43 PM, Aaron Richiger wrote:
> Sorry,i have my exams tomorrow and therefore cant help you a lot,but 
> usually you can do this with setPalette()!get the current palette 
> first,change just the colors you need different and then set the 
> changed palette like this.hope it works....
>
>
> Frank Rueter | OHUfx <frank at ohufx.com> hat geschrieben:
>
>
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20120607/5db9db42/attachment.html>


More information about the PySide mailing list