I had tried with diferents Qt Wflags, but it seems no work. So the only way I had found is this:
// I use this directive in this way:
#include <qapplication.h>
#include <qmainwindow.h>
int main(int argc, char *argv[]) {
QApplication app( argc, argv );
QMainWindow *win;
win = new QMainWindow();
win->setFixedSize(200, 200);
app.setMainWidget(win);
win->show();
return app.exec();
}
If you set the window size, the maximize button won't be shown.
I hope this be useful. Regards.
Bookmarks