[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] QStyle.styleHint() returning negative value for rgb
From: Phil Thompson <phil () riverbankcomputing ! com>
Date: 2010-03-23 11:53:02
Message-ID: afd93cc46a56eca80254afb5601bad57 () localhost
[Download RAW message or body]
On Tue, 23 Mar 2010 11:39:41 +0000, Jugdish <jugdizh@gmail.com> wrote:
> I'm trying to get the color value for the table grid by making the
> following
> call:
>
> QtGui.QApplication.style().styleHint(QtGui.QStyle.SH_Table_GridLineColor,
> option, self)
>
> but this returns -3684409, which is not a valid qRgb (throws an error
when
> constructing a QColor from it). Looking at the internals of styleHint,
the
> number that it's returning is actually
> option.palette.color(QPalette.Mid).rgb(). If I call that method directly,
I
> get 4291282887. So at what point is this value becoming negative?
See...
http://www.riverbankcomputing.com/pipermail/pyqt/2010-February/025893.html
Phil
_______________________________________________
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