2 Star 1 Fork 1

liuzhongtu/HelloQocct

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.cpp 633 Bytes
一键复制 编辑 原始数据 按行查看 历史
Darren.liu 提交于 2024-02-29 16:21 . 恢复MainWindow,支持菜单
#include "mainwindow.h"
#include <QApplication>
#include "OcctView.h"
#include "Viewer.h"
#include "ViewerInteractor.h"
#include <OSD_Environment.hxx>
#include <TopAbs_ShapeEnum.hxx>
int main(int argc, char** argv)
{
OSD_Environment environment("QTDIR");
TCollection_AsciiString qtDirValue = environment.Value();
if (!qtDirValue.IsEmpty())
{
QString plugindsDirName = QString(qtDirValue.ToCString()) + "/plugins";
QApplication::addLibraryPath(plugindsDirName);
}
QApplication app(argc, argv);
MainWindow* mainWindow = new MainWindow();
mainWindow->show();
return app.exec();
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/liuzhongtu/hello-qocct.git
git@gitee.com:liuzhongtu/hello-qocct.git
liuzhongtu
hello-qocct
HelloQocct
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385