#include "TSTQTOse0307.h"
#include <QtWidgets/QApplication>
#include "common.h"
#include "MyViewerWidget.h"
int main(int argc, char** argv)
{
QApplication app(argc, argv);
string filename = "simple.earth";
if (argc > 1) filename = argv[1];
cout << "fileName= " << filename<< endl;
osgEarth::initialize();
MyViewerWidget* viewWidget = new MyViewerWidget(filename);
viewWidget->show();
return app.exec();
}
osgearth3.2 嵌入qt,需要osgEarth::initialize()
最新推荐文章于 2022-11-30 19:50:41 发布