Inherit Q3ListBoxItem and override:
void Q3ListBoxItem:aint ( QPainter * p ) [pure virtual protected]
In paint(), you can draw aligned text with:
void QPainter::drawText ( const QRectF & rectangle, const QString & text, const QTextOption & option = QTextOption() )
by supplying a QTextOption whose text aligment has been set to your like.
Bookmarks