#include <QtGui/QApplication> #include "mainwindow.h" #include <QTextCodec> int main(int argc, char *argv[]) { QApplication a(argc, argv); QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8")); MainWindow w; w.setWindowFlags(w.windowFlags()&~Qt::WindowMaximizeButtonHint& ~Qt::WindowMinimizeButtonHint); w.show(); //w.showMaximized(); return a.exec(); }