Skip to content

Instantly share code, notes, and snippets.

@8Observer8
Created March 27, 2023 05:05
Show Gist options
  • Save 8Observer8/e4d526aa9c247d413e03643613b67353 to your computer and use it in GitHub Desktop.
Save 8Observer8/e4d526aa9c247d413e03643613b67353 to your computer and use it in GitHub Desktop.
empty-window-qt6-cpp
QT += core gui widgets
SOURCES += main.cpp
TARGET = app
/*
> qmake -makefile
> mingw32-make
> "release/app"
*/
#include <QtWidgets/QApplication>
#include <QtWidgets/QWidget>
class MainWindow : public QWidget
{
};
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
MainWindow w;
w.show();
return app.exec();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment