| 31 | } // Config |
| 32 | |
| 33 | RenderWindow::RenderWindow() |
| 34 | { |
| 35 | QString qmlImportPath = QString("%1/%2").arg(QApplication::applicationDirPath()).arg("qml"); |
| 36 | qmlEngine()->setImportPathList({qmlImportPath}); |
| 37 | |
| 38 | QTimer *updateTitleTimer = new QTimer(this); |
| 39 | QObject::connect(updateTitleTimer, &QTimer::timeout, this, &RenderWindow::updateTitle); |
| 40 | updateTitleTimer->start(Config::UpdateTitleInterval); |
| 41 | |
| 42 | QObject::connect(raytraceAspect(), &Qt3DRaytrace::QRaytraceAspect::imageReady, this, &RenderWindow::imageReady); |
| 43 | } |
| 44 | |
| 45 | QVulkanInstance *RenderWindow::createDefaultVulkanInstance() |
| 46 | { |