Hi,

I have a QVariant that contains a QBrush, and I'd like to get it from PyQt. The Qt documentation mentions qvariant_cast for that purpose, but I see no PyQt methods that achieve a similar functionality (I see, however, toDouble and friends). I'm trying to get the background brush from index.data(QtCore.Qt.BackgroundRole) in a custom QItemDelegate.paint(). Maybe there's a simpler way?

Thanks,
-carlos
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to