mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-17 02:49:12 +00:00
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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user