Fix dock widget size/position not being restored on Qt6

This commit is contained in:
Kellermorph
2026-08-22 11:08:02 +02:00
parent f951c20586
commit f6afd87522
4 changed files with 40 additions and 6 deletions
+6
View File
@@ -952,7 +952,13 @@ void QETElementEditor::readSettings()
QVariant state = settings.value("elementeditor/state");
if (state.isValid()) {
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
if (!restoreState(state.toByteArray())) {
settings.remove("elementeditor/state");
}
#else
restoreState(state.toByteArray());
#endif
}
auto data = m_elmt_scene->elementData();