[PySide] custom paint method and QLayout.spacing()

Frank Rueter | OHUfx frank at ohufx.com
Tue Jul 10 10:45:38 CEST 2012


that doesn't seem to make a difference.

I guess I just need to paint it smaller than the widget's rect()?
I wonder how QPushButton and all the other widgets do it. I'd like to 
just mimic that.



On 10/07/12 7:30 PM, Sebastian Elner wrote:
> On 07/10/2012 09:13 AM, Frank Rueter | OHUfx wrote:
>> |painter.fillRect(self.rect(),  bgColor)|
> Can you repalce this with:
> |
> painter.fillRect(event.rect(),bgColor)|
>
> -- 
> Sebastian Elsner    -    pipeline td   -   r i s e |  fx
>
> t:  +49 30 20180300sebastian 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
>
>
> _______________________________________________
> 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/20120710/027045c8/attachment.html>


More information about the PySide mailing list