[PyKDE] setting QLabel/QFont text color
Aljosa Mohorovic
aljosa at revolucija.hr
Wed Jul 19 17:08:51 BST 2006
On 7/19/06, Andreas Pakulat <apaku at gmx.de> wrote:
> > i'm looking for something like ui.copyPreview.setColor(QColor)
>
> No you're not ;-) Look at palette() and setPalette() of the QWidget
> class. It contains a role for WindowText which probably is what you're
> looking for (see ColorRole enum for more roles).
thanks, QPalette.Text was ColorRole i needed.
Aljosa Mohorovic
More information about the PyQt
mailing list