mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-11-15 13:15:43 +08:00
Added QApplication::setAttribute(Qt::AA_ShareOpenGLContexts) to properly support top level window change of OpenGL widgets
This commit is contained in:
parent
5af55c1258
commit
8eb200b9a9
1
.gitignore
vendored
1
.gitignore
vendored
@ -10,6 +10,7 @@ Makefile
|
||||
*.dll
|
||||
*.a
|
||||
build-*
|
||||
build_*
|
||||
|
||||
# IDEs
|
||||
.idea
|
||||
|
@ -43,7 +43,7 @@ int main(int argc, char *argv[])
|
||||
#endif
|
||||
#endif
|
||||
QQuickWindow::setGraphicsApi(QSGRendererInterface::OpenGL);
|
||||
std::shared_ptr<int> b;
|
||||
QApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
|
||||
QApplication a(argc, argv);
|
||||
a.setApplicationName("Advanced Docking System Demo");
|
||||
a.setQuitOnLastWindowClosed(true);
|
||||
|
Loading…
Reference in New Issue
Block a user