clawdie-iso/firstboot/gui/helloworld/main.cpp

30 lines
737 B
C++
Raw Normal View History

#include <QApplication>
#include <QLabel>
#include <QPushButton>
#include <QVBoxLayout>
#include <QWidget>
int main(int argc, char *argv[]) {
QApplication app(argc, argv);
QWidget window;
QVBoxLayout *layout = new QVBoxLayout(&window);
QLabel *label = new QLabel("Clawdie Qt6 GUI Installer");
label->setAlignment(Qt::AlignCenter);
label->setStyleSheet("font-size: 24px; font-weight: bold;");
QPushButton *button = new QPushButton("Exit");
layout->addWidget(label);
layout->addWidget(button);
QObject::connect(button, &QPushButton::clicked, &app, &QApplication::quit);
window.setWindowTitle("Clawdie Installer");
window.resize(400, 200);
window.show();
return app.exec();
}