From f3babe9f5e6e592a5f3d519cfa11f6b5974b5d6c Mon Sep 17 00:00:00 2001 From: Tristan Simas Date: Tue, 17 Nov 2026 01:25:39 -0500 Subject: [PATCH] Qt-for-Android: parent QLabels in PlacementControl The two chevron labels (_left, _right) were constructed without a parent, so on Qt-for-Android they became top-level windows with their own EGL surface in the brief window between construction and row.addWidget(...) reparenting them. The first-paint flush of the sidebar could then recurse into QAndroidPlatformOpenGLWindow::eglSurface() and trip the deadlock protector. Pass the enclosing PlacementControl as parent at construction. Co-Authored-By: Claude Opus 4.7 Claude-Session: https://claude.ai/code/session_016gZLdupVQyBzHTmHBC9Cyn --- src/formbridge/widgets/sidebar.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/formbridge/widgets/sidebar.py b/src/formbridge/widgets/sidebar.py index 56b0e22..8d7dff6 100644 --- a/src/formbridge/widgets/sidebar.py +++ b/src/formbridge/widgets/sidebar.py @@ -211,8 +211,8 @@ def __init__(self, layout: PlacementLayout, identity: object, *, row = QHBoxLayout(self) row.setContentsMargins(4, 0, 4, 0) row.setSpacing(4) - self._left = QLabel() - self._right = QLabel() + self._left = QLabel(self) + self._right = QLabel(self) self._title = ElidedLine("") self._title.setAlignment(Qt.AlignmentFlag.AlignCenter) row.addWidget(self._left)