Skip to content

frontend: Build with Qt 6.8 (QString::arg) - #1017

Merged
zackees merged 1 commit into
obs-rust:masterfrom
vpacher:fix/qt68-string-view-arg
Oct 16, 2026
Merged

zackees merged 1 commit into
obs-rust:masterfrom
vpacher:fix/qt68-string-view-arg

Conversation

@vpacher

@vpacher vpacher commented Oct 16, 2026

Copy link
Copy Markdown
Member

Fixes #1015

What and why

frontend/plugin-manager/InstalledPluginRow.cpp passes a std::string_view (kLegacyPluginInfoLink) to QString::arg(). Qt 6.8 has no arg() overload for std::string_view, so the frontend does not compile on Debian 13 (Qt 6.8.2):

InstalledPluginRow.cpp:103:96: error: no matching function for call to 'QString::arg(const std::string_view&)'

CI uses Qt 6.11.1, which accepts it, so CI does not show the error.

This PR converts the link with QString::fromUtf8() before arg(). The text is the same. No change in behaviour.

RED → GREEN

  • RED commit: none. The error is at compile time and only with Qt 6.8. CI builds with Qt 6.11.1, so no test in CI can fail first. Reproduced locally: master 4f270ee on Debian 13, qt6-base-dev 6.8.2, GCC: the error above, and it is the only compile error.
  • GREEN: 170739b. Debian 13 (Qt 6.8.2): the full build links obs-studio-rust-gui. The Qt frontend CI lane checks Qt 6.11.1.
  • Real app: master 4f270ee with the same expression (an equivalent local commit) runs in production on Debian 13 (headless, NVIDIA, ENABLE_RUST_LIBOBS=ON) since 2026-10-16. The Plugin Manager dialog itself was not opened.

Checklist

  • Base is master (or the description starts with a Stacked: note)
  • I claimed the issue, or no one else has an open PR for it
  • Characterization test (if the unit had none), then RED, then GREEN commits: not possible, see above (compile-time error with a Qt version CI does not use)
  • (Optional) Local gate passed and the pushed head is stamped; otherwise PR CI runs the full suite
  • Warning or flag changes (-W..., ratchets): none
  • Intentional differences from C listed in the parity test header and rust/README.md (ports): not a port

Notes:

🤖 Generated with Claude Code

InstalledPluginRow.cpp passed a std::string_view to QString::arg().
Qt 6.8 has no arg() overload for std::string_view, so the frontend did
not compile on Debian 13 (Qt 6.8.2). CI uses Qt 6.11.1, which accepts
it.

Convert the link with QString::fromUtf8() first. The text is the same;
no change in behaviour.

Fixes obs-rust#1015.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@zackees
zackees enabled auto-merge October 16, 2026 07:33
@zackees
zackees added this pull request to the merge queue Oct 16, 2026
Merged via the queue into obs-rust:master with commit 8258307 Oct 16, 2026
26 checks passed
@vpacher
vpacher deleted the fix/qt68-string-view-arg branch October 16, 2026 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

bug: frontend: does not build with Qt 6.8 (Debian 13): QString::arg(std::string_view)

2 participants