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:
parent
772a371ce6
commit
83b37c5be6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user