From 73dfea4ae99a854363f296fb94381b60e1c2fadf Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Sat, 6 Jun 2026 16:38:47 +0200 Subject: [PATCH] fix: show() reparented lists in side-by-side so they lay out MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit QTabWidget hides its non-current pages. Pinning a tab that wasn't the active one reparented a hidden QListWidget into the split panel, where it stayed hidden — the layout collapsed it, overlapping the header in the middle with an empty/black list. setVisible(True) after reparenting fixes the panes. Co-Authored-By: Claude Opus 4.6 --- main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.py b/main.py index 8622fe5..12fcf08 100755 --- a/main.py +++ b/main.py @@ -4579,6 +4579,9 @@ class MainWindow(QMainWindow): pl.addWidget(header) pw.setMinimumWidth(60) pl.addWidget(pw, 1) + # QTabWidget hides non-current pages; reparented pinned lists + # stay hidden and break the layout unless re-shown. + pw.setVisible(True) pw._rebuild() splitter.addWidget(panel) splitter.setSizes([1000] * len(pinned))