[PyQt] Re: problem with createEditor method of QItemDelegate

2009-08-13 Thread Victor Noagbodji
Hello Julien, to fix it you have to set the contents margins on the layout object. so your code should look like this: qh = QtGui.QHBoxLayout( self ) qh.setContentsMargins(0, 0, 0, 0) self.qlabel = QtGui.QLabel() self.qlabel.setText( foobar )

[PyQt] Re: problem with createEditor method of QItemDelegate

2009-08-13 Thread TP
Victor Noagbodji wrote: Hello Julien, to fix it you have to set the contents margins on the layout object. so your code should look like this: qh = QtGui.QHBoxLayout( self ) qh.setContentsMargins(0, 0, 0, 0) self.qlabel = QtGui.QLabel()