qt5 example

This commit is contained in:
2024-08-11 02:33:53 +03:00
parent 519053708d
commit 12c97ad421
8 changed files with 190 additions and 0 deletions

View File

@ -0,0 +1,29 @@
#ifndef MAINWINDOW_HPP
#define MAINWINDOW_HPP
#include <QProcess>
#include <QWidget>
class QPushButton;
class QTextBrowser;
class MainWindow : public QWidget {
Q_OBJECT
Q_CLASSINFO("Author", "Alexander Popov")
Q_CLASSINFO("Status", "Active")
private slots:
void onButtonReleased();
void onCaptureProcessOutput();
private:
QPushButton *button;
QTextBrowser *textBrowser;
QProcess process;
public:
explicit MainWindow(QWidget *parent = nullptr);
~MainWindow();
};
#endif // MAINWINDOW_HPP