Styled custom widgets

Olivier Goffart ogoffart at kde.org
Tue Sep 2 22:28:16 BST 2008


> A completely offtopic on this thread idea that I would have loved from
> Trolltech would have been that all widgets have a method (probably pure
> virtual on QWidget):
>
> virtual void drawWidget(QPainter *painter, const QRect &rect) const = 0;
>
> that directly draws the widget with the current attributes to that painter.
> It would be extremely useful now that we want to more or less paint widgets
> on itemviews (we have the "Goya" workaround for that now on KDE...).

Are you talking about QWidget::render()?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080902/6d9ef2a9/attachment.sig>


More information about the kde-core-devel mailing list