[Qt] Add MainWindow class

This commit is contained in:
wheremyfoodat
2023-09-30 17:07:54 +03:00
parent 55bb0d7170
commit 155d2b8f24
5 changed files with 32 additions and 10 deletions

View File

@@ -20,6 +20,8 @@
#ifdef PANDA3DS_ENABLE_OPENGL
ScreenWidget::ScreenWidget(QWidget* parent) : QWidget(parent) {
// Create a native window for use with our graphics API of choice
resize(320, 240);
setAutoFillBackground(false);
setAttribute(Qt::WA_NativeWindow, true);
setAttribute(Qt::WA_NoSystemBackground, true);