[PyQt] how to use the style hint enum

tabish--> tabish_shaikh555 at yahoo.com
Wed Jan 13 09:47:38 GMT 2010


hi,
i am stuck with the style hint :
SH_ItemView_PaintAlternatingRowColorsForEmptyArea
i want all the alternate rows to be filled with the default colors.
but i am unable to use the style hint enum.
guys plz help me out with a small code for this . 

my code: 

self.styleThis=QtGui.QStyle().styleHint(QtGui.QStyle.SH_ItemView_PaintAlternatingRowColorsForEmptyArea)
self.list_onlineUsers.setStyle(self.styleThis)  #list_onlineUsers is
QListwidget
-- 
View this message in context: http://old.nabble.com/how-to-use-the-style-hint-enum-tp27142129p27142129.html
Sent from the PyQt mailing list archive at Nabble.com.



More information about the PyQt mailing list