You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Conception/mjpg_streamer/getpixmap.h

39 lines
607 B

#ifndef GETPIXMAP_H
#define GETPIXMAP_H
#include <QString>
#include <QObject>
#include <QNetworkAccessManager>
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QByteArray>
#include <QPixmap>
class GetPixmap : public QObject
{
Q_OBJECT
public:
GetPixmap(QObject *parent = nullptr);
~GetPixmap();
public:
QString get_ipAddr;
QString get_port;
void run();
private slots:
void mjpeg_streamer_reply(QNetworkReply*);
signals:
void get_getOnePixmap(QPixmap);
private:
QNetworkAccessManager *manager;
QNetworkRequest *request;
};
#endif // GETPIXMAP_H