mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2025-04-01 02:42:39 +08:00
Force the repaint of widgets in order that widgets dealing whith raster and openGL widgets are correctly rendered
This commit is contained in:
parent
edc9bcef69
commit
cb62cd7b85
@ -726,6 +726,9 @@ void CDockAreaWidget::setCurrentIndex(int index)
|
||||
TabBar->setCurrentIndex(index);
|
||||
d->ContentsLayout->setCurrentIndex(index);
|
||||
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
|
||||
d->ContentsLayout->currentWidget()->repaint();
|
||||
Q_EMIT currentChanged(index);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user