diff options
Diffstat (limited to 'FTNoIR_Tracker_PT/pt_video_widget.h')
-rw-r--r-- | FTNoIR_Tracker_PT/pt_video_widget.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/FTNoIR_Tracker_PT/pt_video_widget.h b/FTNoIR_Tracker_PT/pt_video_widget.h index f5663e47..acff43fb 100644 --- a/FTNoIR_Tracker_PT/pt_video_widget.h +++ b/FTNoIR_Tracker_PT/pt_video_widget.h @@ -40,12 +40,12 @@ protected slots: void paintEvent( QPaintEvent* e ) {
QMutexLocker foo(&mtx);
QPainter painter(this);
- painter.drawPixmap(e->rect(), pixmap, e->rect());
+ painter.drawImage(e->rect(), texture);
}
void update_and_repaint();
private:
QMutex mtx;
- QPixmap pixmap;
+ QImage texture;
QTimer timer;
cv::Mat _frame;
};
|