1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00
tianduanrui b4d725b2bf update
2018-01-05 10:54:43 +08:00

34 lines
789 B
C++

#include "mainwindow.h"
#include <qqtapplication.h>
#include <QProcess>
class MainApplication: public QQtApplication
{
public:
explicit MainApplication ( int argc, char* argv[] ) :
QQtApplication ( argc, argv ) {
QApplication::setApplicationName ( "exquisite" );
QApplication::setOrganizationName ( "QQt" );
QApplication::setOrganizationDomain ( "www.qqt.com" );
//setQSSStyle();
#ifdef __EMBEDDED_LINUX__
QString value = QProcessEnvironment::systemEnvironment().value("QTDIR");
value += "/lib/fonts/wenquanyi.ttf";
setTextFont(value, 14);
#endif
}
virtual ~MainApplication() {}
};
int main(int argc, char* argv[])
{
MainApplication a(argc, argv);
MainWindow w;
w.show();
return a.exec();
}