QDialog with Maximize and Minimize Button

Window output from QDialog dont have Maximize and Minimize button at left top window form. We can add Maximize and Minimize at QDialog with code :

int main(int argc, char *argv[])
  QApplication a(argc, argv);
  Dialog w;
  w.setWindowFlags(Qt::Window); // add this.
  return a.exec();

Source : http://www.qtcentre.org/threads/17593-QDialog-with-Close-Maximize-and-Context-Help-Buttons

One Comment

Add a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.