summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_aruco/ar_video_widget.h
diff options
context:
space:
mode:
Diffstat (limited to 'ftnoir_tracker_aruco/ar_video_widget.h')
-rw-r--r--ftnoir_tracker_aruco/ar_video_widget.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ftnoir_tracker_aruco/ar_video_widget.h b/ftnoir_tracker_aruco/ar_video_widget.h
index b95d1873..e2cf4d9f 100644
--- a/ftnoir_tracker_aruco/ar_video_widget.h
+++ b/ftnoir_tracker_aruco/ar_video_widget.h
@@ -33,13 +33,13 @@ 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;
};