1
0
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:
Thibault GEFFROY 2025-03-17 16:29:06 +01:00
parent edc9bcef69
commit cb62cd7b85
No known key found for this signature in database
GPG Key ID: 30B5D581E60332E7

View File

@ -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);
}