2015-05-30 12:00:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
#include <QApplication>
|
2018-03-19 11:45:34 +00:00
|
|
|
#include <QStyle>
|
|
|
|
#include <QStyleFactory>
|
2015-05-30 12:00:32 +00:00
|
|
|
|
|
|
|
#include "mainwindow.h"
|
|
|
|
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
QApplication app(argc, argv);
|
|
|
|
|
2018-01-02 17:34:10 +00:00
|
|
|
// app.setAttribute(Qt::AA_DontUseNativeMenuBar);
|
2015-11-27 14:39:34 +00:00
|
|
|
|
2018-03-19 11:45:34 +00:00
|
|
|
#if QT_VERSION >= 0x050000
|
|
|
|
qApp->setStyle(QStyleFactory::create("Fusion"));
|
|
|
|
#endif
|
|
|
|
qApp->setStyleSheet("QLabel, QMessageBox { messagebox-text-interaction-flags: 5; }");
|
|
|
|
|
2015-05-30 12:00:32 +00:00
|
|
|
class UI_Mainwindow MainWindow;
|
|
|
|
|
|
|
|
return app.exec();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|