PDA

View Full Version : Qt widget blending and Qstackwidget



kevinatqt
6th May 2020, 19:45
Hi there,

Anyone can help. Thanks. Below are my tree view of QMainWindow. I set the QOpenGLWidget which display videos as the central widget, than I plan to draw menus dialog on top of it within the same window, or may server this central widget as a canvas, so I can draw any annotation on top of it, so other than QOpenGLWidget, I will have other menu classes as the children of QMainWindow. Is this a good practical method to implement my idea?

Since it is working OK in some degree, it can display the menu widgets on top the my opengl widget and also with alpha background. The only problem right now is my MenuSetting QWidget menu, after adding QStackedWidget, I get double free error when close the window. I need implement a setting menu like Qt Creator's setting dialog, So I use both Qlistwidget and QStackWdiget.

Thank you.


Kevin


vc::ui::VideoWindow::QMainWindow
QMainWindowLayout::_layout
utils::GLWidget::QOpenGLWidget
QPropertyAnimation::
QPropertyAnimation::
QWidget::
QHBoxLayout::
vc::ui::MenuBar::
QWidget::qt_scrollarea_hcontainer
QScrollBar::
QBoxLayout::
QWidget::qt_scrollarea_vcontainer
QScrollBar::
QBoxLayout::
QWidget::
vc::ui::MenuSetting::QWidget
QHBoxLayout::
QListWidget::
QWidget::qt_scrollarea_viewport
QWidget::qt_scrollarea_hcontainer
QScrollBar::
QBoxLayout::
QWidget::qt_scrollarea_vcontainer
QScrollBar::
QBoxLayout::
QStyledItemDelegate::
QListModel::