[Qt-interest] Critical bug: QWidgets with size > 16383 break on OS X
Constantin Makshin
cmakshin at gmail.com
Thu Jun 24 12:26:58 CEST 2010
To be honest, I'm not sure this bug is *that* serious. Screens are still much smaller than 8191 pixels in any dimension, even in multi-screen configurations AFAIK. Also this seems to be a platform limitation, not a Qt's one (else what's the reason to set QWIDGETSIZE_MAX value to something that's not supported?).
As for your problem, the idea to put a "text display widget" into a QScrollView looks a bit strange. Why not use a read-only QTextEdit or QTextBrowser for that purpose?
On Thursday 24 June 2010 12:26:58 Nikos Chantziaras wrote:
> On 06/13/2010 12:47 AM, Nikos Chantziaras wrote:
> > I thought the maximum size of a QWidget in Qt4 was something like 2^24
> > (16 million-something) pixels on all platforms. But on OS X, this isn't
> > the case. I have a widget inside a QScrollView, and that widget can grow
> > very big in the Y (height) dimension (it's a text display where new text
> > is added at the bottom all the time.) Heights over 40000 are not uncommon.
> >
> > However, on Mac OS X, I'm busted. When the widget grows over 16383
> > pixels in height, it wraps back to 8191, and my application gets very
> > messed up. Note that QWIDGETSIZE_MAX is 16777215 on OS X too, so this
> > shouldn't happen.
>
> I've opened a bug about this a while ago:
>
> http://bugreports.qt.nokia.com/browse/QTBUG-11415
>
> I'm surprised to see no one at least confirmed the bug, given the
> seriousness of it. :-/
More information about the Qt-interest-old
mailing list