mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2025-04-01 02:42: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);
|
Q_EMIT currentChanging(index);
|
||||||
TabBar->setCurrentIndex(index);
|
TabBar->setCurrentIndex(index);
|
||||||
d->ContentsLayout->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();
|
d->ContentsLayout->currentWidget()->show();
|
||||||
// Force the repaint of the current widget because mix of OpenGL widgets
|
// Force the repaint of the current widget because mix of OpenGL widgets
|
||||||
// and Raster widgets could have not been entirely rendered
|
// and Raster widgets could have not been entirely rendered
|
||||||
|
Loading…
Reference in New Issue
Block a user