[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] Foreground and Background Color QToolButton
From:       David Boddie <david () boddie ! org ! uk>
Date:       2011-08-19 0:40:46
Message-ID: 201108190240.46816.david () boddie ! org ! uk
[Download RAW message or body]

On Thu, 18 Aug 2011 06:16:22 +0500, uahmed wrote:

> I want to change the foreground and bankground color of QToolButton , I
> know this can be done using ".setStyleSheet " but i want to use other way
> to do that can it be done through QPlatter i search it on net i do find
> examples of .setStyleSheet but not through any other way .

You need to try using QPalette to change the palette of the button.
This example isn't exactly what you need - you should use a QColor instead
of a QLinearGradient - but maybe it will help you to get started:

  http://www.diotavelli.net/PyQtWiki/Windows_with_gradient_backgrounds

David
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic