diff --git a/J3DGUI/QT3DReconstruction.cpp b/J3DGUI/QT3DReconstruction.cpp index e0f7476..565e1dd 100644 --- a/J3DGUI/QT3DReconstruction.cpp +++ b/J3DGUI/QT3DReconstruction.cpp @@ -321,7 +321,13 @@ bool QT3DReconstruction::openJ3DView(QString fileName) return false; } time_t tm = time(NULL); + QPalette pa; + while (!Global::CheckViewerMsg()) { + + pa.setColor(QPalette::WindowText, Qt::yellow); + ui.label_engine->setPalette(pa); + ui.label_engine->setText("正在打开J3D模型文件 "); if (time(NULL) - tm > 60) { QMessageBox::information(NULL, "失败", "打开j3d文件失败,请尝试用管理员身份运行软件 ", QMessageBox::Ok, QMessageBox::Ok); WinExec("taskkill /f /im J3DView.dll", SW_HIDE); diff --git a/Viewer/Scene.cpp b/Viewer/Scene.cpp index bd16c86..50e17de 100644 --- a/Viewer/Scene.cpp +++ b/Viewer/Scene.cpp @@ -303,7 +303,7 @@ bool Scene::Init(int width, int height, LPCTSTR windowName, LPCTSTR fileName, LP if (fileName == NULL || !Open(fileName, meshFileName)) window.SetCamera(CameraPtr(new Camera())); - window.SetVisible(true); + window.SetVisible(false); Global::sce = (void*)this; InstallHook(); return true; diff --git a/Viewer/Viewer.cpp b/Viewer/Viewer.cpp index 725b62e..d8fc021 100644 --- a/Viewer/Viewer.cpp +++ b/Viewer/Viewer.cpp @@ -241,7 +241,8 @@ int main(int argc, LPCTSTR* argv) } cmd << tm; cmd.close(); - + Sleep(1500); + viewer.window.SetVisible(true); viewer.Loop(); Finalize(); return EXIT_SUCCESS;