[PyQt] Skinning the title bar and window border

pard pardmeister at gmail.com
Wed Sep 22 10:36:41 BST 2010


Hi David

Thanks for your response. Do you have any resources that would show how to
do this? Tutorials, examples, etc.
I do need to change the style of the window frame. I am new to pyqt.

Regards
Pard

On 21 September 2010 00:06, David Boddie <david at boddie.org.uk> wrote:

> On Mon, 20 Sep 2010 14:42:55 +0200, pard wrote:
>
> > Is it possible to skin the title bar and window border in pyqt? I
> actually
> > just require a colour change, e.g. make the title bar, window border
> black,
> > have white text and change the colours of the close, minimize and
> maximize
> > buttons.
>
> This is not possible to do using PyQt on most platforms. This is a window
> manager or window system feature. If you really want to restyle the window,
> you might be able to make the window frameless
>
>  window.setWindowFlags(Qt.FramelessWindowHint)
>
> and draw your own window decorations. Of course, you will need to handle
> the buttons yourself. In situations like these, it's actually easier to
> give the window a specialized style than it is to make it look almost
> native, with just a few customizations.
>
> David
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100922/4c0d1f30/attachment-0001.html>


More information about the PyQt mailing list