Skip to content

Commit

Permalink
Improve wording of the UnsupportedScreenGrabber overlay text
Browse files Browse the repository at this point in the history
Give explicit instructions on how to change the backend to either
OpenGL or software, I at least didn't know how to do it - esp. since
it's two distinct env vars one needs to know about.
  • Loading branch information
milianw committed Jan 3, 2025
1 parent 73ca923 commit 27fc52e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/quickinspector/quickscreengrabber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ void UnsupportedScreenGrabber::requestGrabWindow(const QRectF & /*userViewport*/
font.setPointSize(font.pointSize() + 1);
p.setFont(font);
QString backend = VariantHandler::displayString(QVariant::fromValue(m_window->graphicsApi()));
QString txt = backend + QStringLiteral(" is not supported yet, please use OpenGL or Software backend");
QString txt = QLatin1String("%1 is not supported yet, please use the OpenGL (QSG_RHI_BACKEND=opengl) or Software backend (QT_QUICK_BACKEND=software)").arg(backend);
p.drawText(QRect { QPoint(0, 0), m_window->size() }, Qt::AlignCenter | Qt::TextWordWrap, txt);

emit sceneGrabbed(m_grabbedFrame);
Expand Down

0 comments on commit 27fc52e

Please sign in to comment.