Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#328 Opaque resize doesn't reduce height on large windows

open
nobody
Behaviour (212)
5
2008-08-13
2008-08-13
No

When confronted with a window that is larger than the desktop in one or more dimensions, opaque resizing fails. For example, if your Desktop is 1024x768 and a window opens up that measures 800x800. If you try to resize the window, the width (x) dimension will resize as expected. However, the height (y) will get stuck as 768 and you won't be able to make it larger or smaller. The same thing happens for the width if you exceed the width of the desktop.

Moving works OK, but the out-of-bounds dimensions on the little pop-up rectangle shows a number like -2147683469. (E.g. if you exceed the desktop height, you'll get something like "X: 300 Y: -2147683469."

STEPS TO REPRODUCE (using Qt 4):

1. Make sure your screen resolution is 1024x768.
2. Do the following:

$ mkdir hello
$ cd hello
$ cat << EOF > hello.cpp
#include <QtGui>
#include <QtCore>

int main(int argc, char* argv[]) {
QApplication app(argc, argv);
QPushButton hello;
hello.setText("Hello");
hello.resize(800, 800);
hello.show();
return app.exec();
}
EOF
$ qmake -project
$ qmake
$ make
$ ./hello

3. Try to resize the window. I typically use Alt+RMB.

I was also able to reproduce this using FLTK. The key is to manually oversize the window.

WORKAROUND: Disable opaque resizing.

Blackbox Version: 0.70.1
OS: Debian GNU/Linux 4.0 (Etch)
Hardware: PIII Celeron

Discussion