Skip to content

docs(rules): document two Qt/QML gotchas in qt-app.md#80

Merged
jakewan merged 1 commit into
mainfrom
feature/qt-app-layout-test-gotchas
Jun 21, 2026
Merged

docs(rules): document two Qt/QML gotchas in qt-app.md#80
jakewan merged 1 commit into
mainfrom
feature/qt-app-layout-test-gotchas

Conversation

@jakewan

@jakewan jakewan commented Jun 21, 2026

Copy link
Copy Markdown
Owner

Overview

The navigation-shell session surfaced two non-obvious Qt/QML traps that cost real iteration and weren't yet captured in .claude/rules/qt-app.md. Codifying them turns session friction into durable guidance so the next agent touching the Qt app doesn't rediscover them.

The two lessons:

  • Nested Layouts default fillWidth/fillHeight to true. A Layout nested directly inside another Layout (e.g. a ColumnLayout rail inside a RowLayout) defaults these to true — unlike plain Items/controls, which default false — so a fixed-size rail expands and starves its siblings unless pinned explicitly. Documented under a new ## Qt Quick Layouts section.
  • The offscreen test platform doesn't deliver synthetic mouse events to Controls. mouseClick() on a Button fires nothing under QT_QPA_PLATFORM=offscreen; drive components via public API or direct signal emission instead. Documented as an Offscreen input bullet alongside the existing test-harness conventions.

Both are generic Qt/QML behavior in plain English, with no private or personal-environment references.

The navigation-shell work surfaced two non-obvious Qt/QML traps that cost
real iteration: nested Layouts default fillWidth/fillHeight to true (a
fixed-size rail expands and starves siblings unless pinned explicitly),
and the offscreen test platform never delivers synthetic mouse events to
Controls (drive components via public API or direct signal emission).
Codifying both in qt-app.md so the next agent does not rediscover them.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@jakewan jakewan marked this pull request as ready for review June 21, 2026 21:46
@jakewan jakewan merged commit 10de039 into main Jun 21, 2026
3 checks passed
@jakewan jakewan deleted the feature/qt-app-layout-test-gotchas branch June 21, 2026 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant