On Fri, 27 Jun 2008 09:37:10 -0600, Carlos Scheidegger <[EMAIL PROTECTED]> wrote: > 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?
brush = QBrush(qvariant) Phil _______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
