#ifndef WIDGET_H #define WIDGET_H #include class CameraPlayer; namespace Ui { class widget; } class widget : public QWidget { Q_OBJECT public: explicit widget(QWidget *parent = nullptr); ~widget(); private slots: /* 开启预览按钮 */ void on_pBtn_startRealPlay_clicked(); private: Ui::widget *ui; CameraPlayer *m_cameraPlayer = nullptr; }; #endif // WIDGET_H