Details
-
Suggestion
-
Resolution: Out of scope
-
P3: Somewhat important
-
4.3.0
-
None
Description
It would be nice to be able to move the position of the Sheet window on Mac before it is shown.
Currently it is dropped down from the center of the parent top level window, which is reasonable in most cases.
It is possible to move the sheet after the window is shown and the drop down effect is complete.
Consider the following code:
- It would be reasonable to expect that the sheet would be moved from the default center drop down position when move is called explicitly on the sheet before it is shown.
- The Sheet in the example is dropped down from the center of the toplevel parent.
#include <QtGui>
#include <QDebug>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QWidget m;
m.resize(60,60);
m.show();
QWidget w(&m, Qt::Sheet );
w.move(450,450);
w.show();
return app.exec();
}