[Development] Why does QLabel::pixmap() return `const QPixmap*`?

Sze Howe Koh szehowe.koh at gmail.com
Sun Nov 30 02:04:00 CET 2014

Hi all,

I'm curious about the rationale behind this API design. I can't think
of any other Qt function that returns an implicitly-shared object by
pointer, so this seems inconsistent. e.g. QWidget::font() returns a
QFont by const-ref.


More information about the Development mailing list