2017-10-12 16:28:07 +08:00
|
|
|
#include "mainwindow.h"
|
|
|
|
#include <QApplication>
|
|
|
|
#include <qqtapplication.h>
|
2017-11-28 12:15:56 +08:00
|
|
|
#include <qqtframe.h>
|
|
|
|
#include <QSettings>
|
2017-11-28 16:38:31 +08:00
|
|
|
#include <qqtcore.h>
|
2017-10-12 16:28:07 +08:00
|
|
|
|
|
|
|
class MyApp : public QQtApplication
|
|
|
|
{
|
|
|
|
public:
|
2017-11-28 12:15:56 +08:00
|
|
|
explicit MyApp ( int& argc, char** argv ) : QQtApplication ( argc, argv ) {
|
|
|
|
QApplication::setOrganizationName ( "qqtframe" );
|
|
|
|
QApplication::setOrganizationDomain ( "www.qqtframe.com" ); // 专为Mac OS X 准备的
|
|
|
|
QApplication::setApplicationName ( "QQtFrame" );
|
2017-10-24 13:52:25 +08:00
|
|
|
}
|
2017-10-12 16:28:07 +08:00
|
|
|
};
|
|
|
|
|
2017-11-28 12:15:56 +08:00
|
|
|
int main ( int argc, char* argv[] )
|
2017-10-12 16:28:07 +08:00
|
|
|
{
|
2017-11-28 12:15:56 +08:00
|
|
|
MyApp a ( argc, argv );
|
2017-11-28 16:38:31 +08:00
|
|
|
|
2017-10-12 16:28:07 +08:00
|
|
|
MainWindow w;
|
|
|
|
w.show();
|
|
|
|
|
|
|
|
return a.exec();
|
|
|
|
}
|