1
0
mirror of https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git synced 2025-03-31 10:22:39 +08:00

Avoid window blink when handling OpenGL

This commit is contained in:
Thibault GEFFROY 2025-03-18 10:53:32 +01:00
parent 772a371ce6
commit 83b37c5be6
No known key found for this signature in database
GPG Key ID: 30B5D581E60332E7

View File

@ -725,6 +725,8 @@ void CDockAreaWidget::setCurrentIndex(int index)
Q_EMIT currentChanging(index);
TabBar->setCurrentIndex(index);
d->ContentsLayout->setCurrentIndex(index);
// Force the widget to be native in order to avoid blinks with OpenGL widgets
d->ContentsLayout->currentWidget()->winId();
d->ContentsLayout->currentWidget()->show();
// Force the repaint of the current widget because mix of OpenGL widgets
// and Raster widgets could have not been entirely rendered