snipplets.dev/projects/Qt/example/include/mainwindow.hpp

30 lines
514 B
C++
Raw Permalink Normal View History

2024-08-11 02:33:53 +03:00
#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