【发布时间】:2015-09-15 18:49:20
【问题描述】:
我想在我的 QOpenGLWindow 之上添加 QWidget。例如:
在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();
但是 mywidget 在 container 后面。
我该如何解决这个问题?
【问题讨论】:
标签: c++ qt opengl qwidget qwindow