Qt Code:
  1. #include <QApplication>
  2. #include <QLineEdit>
  3. #include <QGridLayout>
  4. #include <QPushButton>
  5. #include <QWSServer>
  6.  
  7. int main(int argc, char* argv[])
  8. {
  9. QApplication app(argc, argv);
  10. QPushButton button("hello world");
  11. QWSServer::setMaxWindowRect(QRect(100,100,200,200));
  12. button.showMaximized();
  13. return app.exec();
  14. }
To copy to clipboard, switch view to plain text mode 

when the application start, the application widget show normal on Geometry(100,100,200,200).
but when click the Restores button on the title bar.
the application widget show in 0,0 position.
but I have setMaxWindowRect(QRect(100,100,200,200)).

I wonder is it a bug?