09a4492f07
2. 增加了窗口大小随着模型大小变化而变化的功能
25 lines
679 B
C++
25 lines
679 B
C++
#include <QtWidgets/QApplication>
|
|
#include "ElaApplication.h"
|
|
#include <QFontDatabase>
|
|
#include <QMessageBox>
|
|
#include "GLCore.h"
|
|
|
|
#ifdef Q_OS_UNIX
|
|
#include <QLoggingCategory>
|
|
#endif
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QApplication a(argc, argv);
|
|
eApp->init();
|
|
// 设置云母效果图片
|
|
eApp->setMicaImagePath("Resources/Pic/Others/MicaBase.png");
|
|
#ifdef Q_OS_UNIX
|
|
// 设置日志过滤规则,将这个特定分类的警告级别设置为“关闭”
|
|
QLoggingCategory::setFilterRules("qt.multimedia.ffmpeg.libsymbolsresolver.warning=false");
|
|
#endif
|
|
GLCore w(360, 480); // 创建默认的窗口
|
|
w.show();
|
|
return QApplication::exec();
|
|
}
|