1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00

30 lines
681 B
C++
Raw Normal View History

#include "mainwindow.h"
2017-12-30 10:19:43 +08:00
#include <qqtapplication.h>
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();
2017-12-30 15:01:48 +08:00
#ifdef __EMBEDDED_LINUX__
setTextFont("/usr/local/Trolltech/lib/fonts/wenquanyi.ttf", 14);
#endif
2017-12-30 10:19:43 +08:00
}
virtual ~MainApplication() {}
};
2017-10-20 20:52:19 +08:00
int main(int argc, char* argv[])
2017-10-20 20:52:19 +08:00
{
2017-12-30 10:19:43 +08:00
MainApplication a(argc, argv);
MainWindow w;
2017-10-20 20:52:19 +08:00
w.show();
return a.exec();
}