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
+5 -3
View File
@@ -1,4 +1,4 @@
#ifndef MAINWINDOW_H
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QObject>
@@ -15,17 +15,19 @@ class MainWindow : public QMainWindow
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
MainWindow(qreal dpiScale, QWidget *parent = nullptr);
public slots:
void openFile();
void appendToOutputText(const QString& message);
private:
void createActions();
void createMenus();
void createConnections();
void appendToOutputText(const QString& message);
private:
qreal m_dpiScale;
QMenu *fileMenu;
QAction *openAction;
QAction *quitAction;