python - Subclassed QStyledItemDelegate ignores Stylesheet -


i'm trying subclass qstyleditemdelegate remove focus rectangle in qcombobox.

even though i'm calling base implementation of paint function , nothing else, result different. looks if parts of style-sheet influence bounding box of item taken consideration.

class pstyleditemdelegate(qstyleditemdelegate):     def __init__(self, *args, **kwds):         super(pstyleditemdelegate, self).__init__(*args, **kwds)      def paint(self, *args, **kwargs):         qstyleditemdelegate.paint(*args, **kwargs) 

what have paint unmodified qstyleditemdelegate?

as suggested tried replacing pyside pyqt4 , works, appears bug. update pyside 1.1.2 1.2.1 result same.

unfortunately switch breaks other parts of code, if there no other suggestions i'm going accept answer.

edit bug tracked here


Comments

Popular posts from this blog

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

php - ternary operator in a dynamic dropdown menu -