+ : QWidget(parent),
+ video_window(new VideoWindow(this)) {
+ setLayout(new QHBoxLayout);
+ layout()->addWidget(QWidget::createWindowContainer(video_window));
+
+ // ...
+ connect(video_window, &VideoWindow::mouse_wheel, this, &VideoWidget::wheelEvent);
+ connect(video_window, &VideoWindow::mouse_pressed, this, &VideoWidget::mousePressEvent);
+ connect(video_window, &VideoWindow::mouse_released, this, &VideoWidget::mouseReleaseEvent);
+ connect(video_window, &VideoWindow::mouse_moved, this, &VideoWidget::mouseMoveEvent);
+}