Implemented: Application icons; OpenSceneGraph to handle OpenGL with Qt; devicePixelRatio() for handing render on highDPI displays; Sample 3D with handler; MouseHandler not yet working as expected (WIP)

This commit is contained in:
dushyant basson
2023-09-05 17:51:25 +05:30
parent 341e68907f
commit c7effd2498
12 changed files with 321 additions and 45 deletions
+3 -2
View File
@@ -1,10 +1,11 @@
#include "MainWindow.h"
#include "MainWindow.h"
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
qreal dpiScale = app.devicePixelRatio();
// Set the icon in the window title-bar on mswindows
// and dock icon on macos.
@@ -15,7 +16,7 @@ int main(int argc, char *argv[])
// mswindows - .rc file
// macos - .icns file (using CMake)
MainWindow window;
MainWindow window(dpiScale);
window.show();