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

Qt Code:
  1. vc::ui::VideoWindow::QMainWindow
  2. QMainWindowLayout::_layout
  3. utils::GLWidget::QOpenGLWidget
  4. QPropertyAnimation::
  5. QPropertyAnimation::
  6. vc::ui::MenuBar::
  7. QWidget::qt_scrollarea_hcontainer
  8. QWidget::qt_scrollarea_vcontainer
  9. vc::ui::MenuSetting::QWidget
  10. QWidget::qt_scrollarea_viewport
  11. QWidget::qt_scrollarea_hcontainer
  12. QWidget::qt_scrollarea_vcontainer
  13. QStyledItemDelegate::
  14. QListModel::
To copy to clipboard, switch view to plain text mode