The manual of QSplitter does not mention about the arrangement of sizes after insertion of a widget, so the behavior in Qt5 might have just happened to be consistent with the purpose here. I cannot point out exactly when the behavior changed, but setting the condition at the start of Qt6 would not be harmful. Does the patch like this look OK? -------------------------------------------------------------------------------------- diff --git a/src/frontends/qt/GuiView.cpp b/src/frontends/qt/GuiView.cpp index c4fbad7540..f64c368a59 100644 --- a/src/frontends/qt/GuiView.cpp +++ b/src/frontends/qt/GuiView.cpp @@ -5190,6 +5190,13 @@ void GuiView::dispatch(FuncRequest const & cmd, DispatchResult & dr) TabWorkArea * twa = addTabWorkArea(); GuiWorkArea * wa = twa->addWorkArea(*doc_buffer, *this); +#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) + // Adjust all views to have equal sizes + QList<int> sizelist; + for (int i=0; i < d.splitter_->count(); ++i) + sizelist.append(1); + d.splitter_->setSizes(sizelist); +#endif wa->bufferView().copySettingsFrom(*bv); dr.screenUpdate(Update::ForceAll); setCurrentWorkArea(wa); ——————————————————————————————————————————— Koji |
adjust_views.diff
Description: Binary data
-- lyx-devel mailing list [email protected] https://lists.lyx.org/mailman/listinfo/lyx-devel
