[PyQt] vertical alignment of richtext in a table view
wolfgang at rohdewald.de
Sat Dec 18 17:56:36 GMT 2010
On Dienstag 07 September 2010, Mark Summerfield wrote:
> > > The offset you need might be made up of the
> > > option.decorationSize's width; not sure about the height
> > > offset.
> > decorationSize is (16,16) - that does not explain it.
> Then I'm not sure. Could try experimenting with the label's
> indent, margin, and frameWidth.
now I found the problem.
This misplaces the text:
label = QLabel()
def paint(self, painter, option, index):
I have to do:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the PyQt