#include #include int main(int argc, char *argv[]) { QApplication a(argc, argv); QWidget w(Q_NULLPTR, Qt::WindowFlags(Qt::Dialog | Qt::WindowMinMaxButtonsHint | Qt::WindowCloseButtonHint)); w.setWindowTitle("Can I be resized? " "Do I have working minimise and maximise buttons?"); w.show(); return a.exec(); }