I want to add QWidget on top of my QOpenGLWindow. For example:
In qmainwindow.cpp:
QWidget *mywidget = new QWidget(this);
mywidget->hide();
QOpenGLWindow *glwindow = new QOpenGLWindow();
QWidget *container = QWidget::createWindowContainer(glwindow, this);
// ...
ui->tabWidget->addTab(container, "Container");
// then I want mywidget to be at the top of my tabWidget and container.
mywidget->show();
But mywidget is behind the container.
How can I solve this problem?