qt5 example
This commit is contained in:
29
projects/Qt/example/include/mainwindow.hpp
Normal file
29
projects/Qt/example/include/mainwindow.hpp
Normal 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
|
Reference in New Issue
Block a user