14 lines
346 B
C++
14 lines
346 B
C++
#include "qt_dialog.h"
|
|
#include <QLabel>
|
|
#include <QVBoxLayout>
|
|
|
|
QtDialog::QtDialog(QWidget* parent)
|
|
: QDialog(parent)
|
|
{
|
|
setWindowTitle("Non-blocking Qt Dialog");
|
|
QVBoxLayout* layout = new QVBoxLayout(this);
|
|
QLabel* label = new QLabel("Hello from Qt (non-blocking)!", this);
|
|
layout->addWidget(label);
|
|
setLayout(layout);
|
|
}
|