Skip to content

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

Closed

Description

@vpacher

Summary

The frontend does not compile with Qt 6.8. InstalledPluginRow.cpp passes a std::string_view to QString::arg(). Qt 6.8 has no arg() overload that accepts std::string_view. CI builds with Qt 6.11.1, which accepts it, so CI does not show the error.

Location

frontend/plugin-manager/InstalledPluginRow.cpp, line 103:

constexpr std::string_view kLegacyPluginInfoLink{"https://obsproject.com/go/legacy-plugin-locations"};
...
new QLabel{QTStr("PluginManager.Status.Legacy.Description").arg(kLegacyPluginInfoLink),

How it is reached

Master build (4f270ee), Debian 13, qt6-base-dev 6.8.2+dfsg-9+deb13u2, GCC, ENABLE_RUST_LIBOBS=ON:

InstalledPluginRow.cpp:103:96: error: no matching function for call to 'QString::arg(const std::string_view&)'
qt6/QtCore/qstring.h:290:5: note: candidate: 'template<class ... Args> ... QString::arg(Args&& ...) const'
  (requires sizeof...(Args) >= 2, and each argument convertible to QString, QStringView or QLatin1String)

This is the only compile error with Qt 6.8.2 on current master. With a local fix for this line, the full frontend builds and runs (production use on Debian 13 since 2026-10-15).

Proposed fix

Convert the link to a QString before arg():

.arg(QString::fromUtf8(kLegacyPluginInfoLink.data(), qsizetype(kLegacyPluginInfoLink.size())))

The string is unchanged; this compiles with Qt 6.8 and newer. No behaviour change.

There is no failing test: the error is at compile time and only with a Qt version that CI does not use. CI shows that the fix still builds with Qt 6.11.1.

Open question (not part of the fix)

frontend/cmake/ui-qt.cmake calls find_package(Qt6 REQUIRED ...) without a minimum version. Should the fork declare a minimum Qt version, or add a build lane with an older distribution Qt (for example Debian 13, Qt 6.8)? Without one of the two, a similar error can come back without notice.

Activity

  1. vpacher commented on Oct 16, 2026

    @vpacher
    MemberAuthor

    Claiming: this issue.

    1. One commit: convert the link with QString::fromUtf8() before arg(). No RED commit: the error is at compile time with Qt 6.8 only, and CI uses Qt 6.11.1, so no CI test can fail first. Verified locally on Debian 13 (Qt 6.8.2).
      PR today.
  2. added
    claimed
    on Oct 16, 2026
  3. added a commit that references this issue on Oct 16, 2026
    8258307
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    claimed

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions