30 lines
514 B
C++
30 lines
514 B
C++
|
#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
|