[PyQt] Re: problem with createEditor method of QItemDelegate

Victor Noagbodji noagbodjivictor at gmail.com
Thu Aug 13 15:20:16 BST 2009

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" )
        qh.addWidget( self.qlabel )


paul victor noagbodji

More information about the PyQt mailing list