[PyQt] QStyle.styleHint() returning negative value for rgb

2010-03-23 Thread Jugdish
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 inte

Re: [PyQt] QStyle.styleHint() returning negative value for rgb

2010-03-23 Thread Phil Thompson
On Tue, 23 Mar 2010 11:39:41 +, Jugdish 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 (thro

[PyQt] pythonw crash trying to run demos

2010-03-23 Thread Colin Jenkins
Hi, I have tried to google my problem but no luck - can not find archive of this list to check either.  Apologies for basic Q. Bought the Summerfield rapid GUI book and Python 3.1 books. Using windows xp sp3. Just installed python 3.1.2 (windows .msi) + pyqt-py3.1-gpl4.7.2-1 (windows .exe

Re: [PyQt] [Matplotlib-users] Strange issue when using Matplotlib with PyQt4

2010-03-23 Thread Lukas Hetzenecker
Hello, this seems to be a bug of matplotlib in versions < 0.98.6 (it started working in recent svn revisions) I did not find a proper workaround, but this quick hack fixed it: if not matplotlib.compare_versions(matplotlib.__version__, '0.98.6svn'): self.resize(self.size().width()+1, self.siz

[PyQt] QXmlQuery.evaluate() does'nt accept QString parameter?

2010-03-23 Thread Olivier Fournier
Hi, I would like to use the overloaded function QXmlQuery.evaluateTo (self, QString). I raise this Error: TypeError: arguments did not match any overloaded call: QXmlQuery.evaluateTo(QXmlResultItems): argument 1 has unexpected type 'str' QXmlQuery.evaluateTo(QAbstractXmlReceiver): argument

Re: [PyQt] QXmlQuery.evaluate() does'nt accept QStr ing parameter?

2010-03-23 Thread Phil Thompson
On Tue, 23 Mar 2010 16:34:39 +0100, Olivier Fournier wrote: > Hi, > > I would like to use the overloaded function QXmlQuery.evaluateTo (self, > QString). > I raise this Error: > TypeError: arguments did not match any overloaded call: > QXmlQuery.evaluateTo(QXmlResultItems): argument 1 has une

Re: [PyQt] QGraphicsPixmapItem not showing set pixmap

2010-03-23 Thread David Boddie
[Resending from the correct address...] On Mon Mar 22 14:12:10 GMT 2010, dizou wrote: > I still haven't gotten this to work. Any other suggestions? > > I've tried this: > > class DisplayItem(QGraphicsPixmapItem): > def __init__(self, parent, pixmap=None, graphView=None): > QGraphicsPi

Re: [PyQt] QXmlQuery.evaluate() does'nt accept QString parameter?

2010-03-23 Thread David Boddie
On Tue Mar 23 15:52:22 GMT 2010, Phil Thompson wrote: > On Tue, 23 Mar 2010 16:34:39 +0100, Olivier Fournier > > wrote: > > > > I would like to use the overloaded function QXmlQuery.evaluateTo (self, > > QString). [...] > Mainly laziness on my part. I need to write some handwritten code to deal

Re: [PyQt] QGraphicsPixmapItem not showing set pixmap

2010-03-23 Thread dizou
I figured out the problem. I had overloaded the paint() function, and in my overloaded function, I wasn't calling the superclass's paint() -- View this message in context: http://old.nabble.com/QGraphicsPixmapItem-not-showing-set-pixmap-tp27229352p28005332.html Sent from the PyQt mailing list ar

[PyQt] hide boundary around QGraphicsPixmapItem

2010-03-23 Thread dizou
I have QGraphicsScene with a bunch of QGraphicsPixmapItems in it. When I click on the item, the bounding rectangle around the pixmap is displayed. How do I turn off displaying the bounding rectangle? -- View this message in context: http://old.nabble.com/hide-boundary-around-QGraphicsPixmapItem-

[PyQt] Compiling PyKDE on OSX

2010-03-23 Thread David Baumgold
I'm trying to compile PyKDE on Mac OS X 10.6.2 via Macports (I'm writing a new Portfile for it), and I haven't been able to get it to compile. It looks like the file pykde4/sip/kdecore/ktempdir.sip is trying to include a file named fixx11h.h, which doesn't exist on my system. I've done a bit of goo