[Interest] QScrollArea sizeHint

Marcus Tillmanns Marcus.Tillmanns at qt.io
Fri May 16 11:52:49 CEST 2025


Hi,

QScrollArea::sizeHint has a weird limitation where its sizeHint, when taking it from the content widget, is artificially limited to 36/24 * font height. (See also: https://bugreports.qt.io/browse/QTBUG-136762)

I’m trying to see if there is anyone that could give a good example where this makes sense to them or if you rely on this. (Not some theoretical “My content widget might be huge”, but actual in field experience). I’d also be interested in “yeah this is annoying, I have to subclass QScrollArea to work around it”.

Cheers,
Marcus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20250516/6977d8b1/attachment.htm>


More information about the Interest mailing list