Hello all,

One more issue to report:

qt-all-commercial-src-4.5.0-snapshot-20090205.tar.gz built with:

./configure -prefix $PWD -platform macx-g++ -arch x86_64

When a QDialog is created and opened whose parent is the main 
application window (or even if the parent is null), then it sometimes 
seems to get positioned strangely on the screen.  Usually child dialogs 
appear on top of the parent window (as they did with Qt 4.4/Carbon) so 
that the user notices them and can reach them easily, but at the moment 
they're sometimes appearing way down the screen, so that (at least on my 
monitor, which runs at 2560 x 1600 resolution) they don't cover the 
parent window, and a user could easily fail to notice them, or they 
sometimes even appear mostly off the bottom of the screen.

For example, edit $QTDIR/examples/application/mainwindow/mainwindow.cpp, 
find the MainWindow::newFile() fn, and completely replace it with:

void MainWindow::newFile()
{
    QDialog* dlg = new QDialog( this, Qt::CustomizeWindowHint | 
Qt::WindowTitleHint | Qt::WindowSystemMenuHint );
    dlg->setFixedSize( 1000, 700 );
    dlg->exec();
}

Build and run.

Click the 'new file' tool button or menu item.  The child QDialog opens 
much further down the screen, so that it doesn't cover any portion of 
the parent window.

Smaller child windows usually seem to appear less far down the screen, 
but there seems to be some sort of odd behaviour in general with Qt 's 
calculation of default window positions for dialogs.

Of course, a workaround would be for us to call QDialog::move() to 
position each of our dialogs manually, but that wasn't needed with Qt 
4.4/Carbon, which handled it fine by default.  The default window 
positioning behaviour also seems to have changed (and got rather odder!) 
since 4.5 snapshots from a couple of weeks ago.

Thanks and best regards,
Martin Dyde.

Martin Dyde,
Milan Digital Audio LLC.
http://www.crumhorn-labs.com/
http://www.milandigitalaudio.com/


_______________________________________________
Qt4-preview-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback

Reply via email to