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

List:       pykde
Subject:    [PyKDE] QVariant support in PyQt4
From:       Andreas Pakulat <apaku () gmx ! de>
Date:       2005-12-30 20:36:42
Message-ID: 20051230203642.GA28352 () morpheus
[Download RAW message or body]

Hi,

maybe I'm just too stupid, but it seems the following C++ code:

qVariantFromValue(QColor(Qt::blue)

cannot be correctly ported to PyQt4. Using

QtCore.qVariantFromValue(QtCore.QVariant(QtGui.QColor(QtCore.Qt.blue)))

I get a QVariant which type() function returns type number 66 (which
would be QBrush, not QColor). 

Also QVariant lacks the value() function, thus I don't really have a
clue how to check the real value that it contains.

Andreas

-- 
Just because the message may never be received does not mean it is
not worth sending.

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

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