mirror of
https://gitee.com/drabel/LibQQt.git
synced 2025-01-04 10:18:44 +08:00
28 lines
645 B
C++
28 lines
645 B
C++
#include "mainwindow.h"
|
|
#include <QApplication>
|
|
#include <qqtapplication.h>
|
|
#include <qqtframe.h>
|
|
#include <QSettings>
|
|
#include <qqtcore.h>
|
|
|
|
class MyApp : public QQtApplication
|
|
{
|
|
public:
|
|
explicit MyApp ( int& argc, char** argv ) : QQtApplication ( argc, argv ) {
|
|
QApplication::setOrganizationName ( "qqtframe" );
|
|
QApplication::setOrganizationDomain ( "www.qqtframe.com" ); // 专为Mac OS X 准备的
|
|
QApplication::setApplicationName ( "QQtFrame" );
|
|
}
|
|
};
|
|
|
|
int main ( int argc, char* argv[] )
|
|
{
|
|
MyApp a ( argc, argv );
|
|
pline() << hex << QT_VERSION;
|
|
|
|
MainWindow w;
|
|
w.show();
|
|
|
|
return a.exec();
|
|
}
|