Repository navigation
frontend: Keep the Settings audio track buttons by their label - #1136
Conversation
4824327 to
745de54
Compare
745de54 to
f5d0ef0
Compare
|
The macOS Tier 2 failure was in the new test: its |
|
CI triage (maintainer loop): Probable cause: this is the first Qt GUI test that actually runs in the Windows Tier 2 lane. The other offscreen tests ( Suggestions:
Push a fix and CI will re-run. |
cmocka_qt_runtime() puts Qt's bin directory on PATH for Windows tests so they find the Qt DLLs, but a Qt GUI test also loads plugins, such as its platform plugin. Also put the Qt prefix's plugins directory, next to bin as find_qt_plugins() expects, on QT_PLUGIN_PATH, so a test finds Qt's plugins even when Qt cannot work out its own install prefix. The obs-deps Qt is relocatable and finds its plugins from Qt6Core.dll, so this changes nothing for today's tests. It is there for the Qt GUI tests that run in the Windows Tier 2 lane from the next commit on. Refs obs-rust#1135. Co-Authored-By: Claude Opus 5.5 <[email protected]>
In a tall Settings window the Audio Track buttons on Settings > Output move down, away from their "Audio Track" label. Each track row is a QStackedWidget next to a label in a form layout. Its vertical size policy is Preferred, so the page's spare height goes to the stack, the buttons are centred in it, and the label stays at the top of the row. In the 0.1.0-beta.20261014 release, in a 2000 px tall window, the buttons sit 190 px below the label on Advanced > Streaming, 269 px on Advanced > Recording and 163 px for the Simple mode recording tracks. test_settings_track_rows builds the real OBSBasicSettings.ui with uic, with plain Qt stand-ins for its five custom widgets (settings-ui-stubs/), and shows the Output page at 700, 1400 and 2000 px on Qt's offscreen platform. Each case checks that the first track button's centre stays within 3 px of its label's centre. On Windows the test uses Qt's minimal platform instead: Qt builds the offscreen one only with FreeType, and the obs-deps Qt for Windows has none, so it ships no qoffscreen.dll. A release Qt that loads no platform plugin in a process without a console window, as under ctest on a CI runner, shows a modal message box and waits, so the test first looks for the plugin where Qt does and fails on stderr if it is missing. A ctest TIMEOUT of 120 s covers any other hang. RED: 3 of 3 cases fail. The buttons are 385 px (Advanced > Streaming), 279 px (Advanced > Recording) and 254 px (Simple) from the label at 2000 px. Refs obs-rust#1135. Co-Authored-By: Claude Opus 5.5 <[email protected]>
change `advStreamTrackWidget`'s vsizetype from `Preferred` to `Fixed` which prevent this item stretching in vertical direction Ported from obsproject/obs-studio#13357 (upstream issue obsproject/obs-studio#13286). test_settings_track_rows: advanced_streaming_track_stays_by_label now passes. Refs obs-rust#1135. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The recording track rows have the same layout as the streaming one: advRecTrackWidget (Advanced > Recording) and simpleRecTrackWidget (Simple mode) are QStackedWidgets with a vertical size policy of Preferred, so in a tall Settings window they take the page's spare height and their track checkboxes slide away from the "Audio Track" label (269 px and 163 px at 2000 px in 0.1.0-beta.20261014). Give them a Fixed vertical policy too, as the previous commit does for advStreamTrackWidget. test_settings_track_rows: 3/3. In each row the first track button stays level with its label at 700, 1400 and 2000 px. Fixes obs-rust#1135. Co-Authored-By: Claude Opus 5.5 <[email protected]>
f5d0ef0 to
d749a11
Compare
|
Thanks for the triage. You were right about the cause, but it isn't the plugin path. The obs-deps Qt for Windows has no The hang comes from qtbase 6.11.1 Changes (one new commit, and the test commit amended; the two fix commits are unchanged):
What I verified, on Linux only:
Not verified: I have no Windows machine, so the Windows Tier 2 run on this push is the first real test of the minimal platform with the obs-deps Qt there. If that isn't wanted, the fallback is to register the test only where offscreen exists (not Windows). |
Fixes #1135
What and why
In a tall Settings window, the audio track buttons on Settings > Output now stay next to their "Audio Track" label. Before, they slid down the page, further the taller the window (upstream obsproject/obs-studio#13286, reported by Tre-Kronor and reproduced by suogesi).
Cause
frontend/forms/OBSBasicSettings.uiis aQStackedWidget(single-track radio buttons or multi-track checkboxes) next to aQLabelin a form layout, withvsizetype="Preferred".advStreamTrackWidget(Advanced > Streaming),advRecTrackWidget(Advanced > Recording) andsimpleRecTrackWidget(Simple mode recording).Fix
advStreamTrackWidgetgetsvsizetype="Fixed".advRecTrackWidgetandsimpleRecTrackWidget, which the upstream PR doesn't cover.In the release and on this branch (headless, private Xvfb at 1920x2160, fresh profile; a small test plugin opened Settings > Output, resized the window and logged each widget's position). The distance from the centre of the first track button to the centre of its label:
The screenshots match: in the release the label sits at the top of the row with buttons 1 to 6 far below it; on this branch they are on one line, and the rows below follow straight after.
RED → GREEN
test/cmocka: Settings audio track buttons slide away from their label.test_settings_track_rowsbuilds the realOBSBasicSettings.uiwith uic. Its five custom widgets (OBS::SpinBox,OBS::DoubleSpinBox,AbsoluteSlider,OBSHotkeyEdit,UrlPushButton) are replaced by plain Qt stand-ins intest/cmocka/settings-ui-stubs/. It shows the Output page at 700, 1400 and 2000 px on Qt's offscreen platform. Each case checks that the first track button's centre stays within 3 px of its label's. 3 of 3 cases fail in both lanes:advanced_streaming_track_stays_by_label: 385 px at 2000 px;advanced_recording_tracks_stay_by_label: 279 px;simple_recording_tracks_stay_by_label: 254 px.ENABLE_RUST_LIBOBSOFF and ON. The stacks stay at 19 px and the buttons level with their labels at every height.-j8(private Xvfb and D-Bus, systemlibobs-openglmasked, TMPDIR unset):test_settings_track_rowsincluded. Skips as on master:open_crashes_without_obs_core(test_audio_io,test_video_io) andtest_startup_cycle_stress(obs_startup under the nested Xvfb). All PipeWire/Pulse tests ran.ci/test_registration.pyare clean.DISPLAYunset), no frontend build, no libobs. It is registered for every platform withcmocka_qt_runtime(). It runsuicby hand (qt_wrap_ui), liketest_plugin_manager.Checklist
master-W..., ratchets): noneAI note: Claude Code (Claude Opus 5.5) wrote the test, the second commit, the commit messages and this text under the submitter's direction, and ran the tests above on the submitter's machines. The first fix commit is suogesi's.
🤖 Generated with Claude Code