[vlc-commits] [Git][videolan/vlc][master] 2 commits: qt: provide qt rhi general messages with `qt-verbose` setting

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Tue Jun 2 18:00:22 UTC 2026



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
e3ce17db by Fatih Uzunoglu at 2026-06-02T19:38:19+02:00
qt: provide qt rhi general messages with `qt-verbose` setting

This is relevant because Qt Quick sets the flag
`QRhi::SuppressSmokeTestWarnings`, which makes
Qt RHI to print general messages through debug
logger in its own category, rather than `qWarning()`.

- - - - -
8548c6fb by Fatih Uzunoglu at 2026-06-02T19:38:19+02:00
qt: do not require `qt-verbose` for qt rhi general messages

We can do this because Qt RHI's general messages are not
verbose at all, only few lines are printed.

Note that `verbose` setting is still going to be respected,
we only make it not require `qt-verbose` in this case.

- - - - -


1 changed file:

- modules/gui/qt/util/vlcqtmessagehandler.cpp


Changes:

=====================================
modules/gui/qt/util/vlcqtmessagehandler.cpp
=====================================
@@ -42,7 +42,8 @@ static void vlcQtMessageHandler(QtMsgType type, const QMessageLogContext &contex
     if (g_logQtMessages
         || qstrcmp(context.category, "default") == 0
         || qstrcmp(context.category, "qml") == 0
-        || qstrcmp(context.category, "js") == 0)
+        || qstrcmp(context.category, "js") == 0
+        || qstrcmp(context.category, "qt.rhi.general") == 0)
     {
         const char *file = context.file ? context.file : "";
         const char *function = context.function ? context.function : "";
@@ -91,8 +92,13 @@ void setupVlcQtMessageHandler(vlc_object_t* p_intf)
     {
         filterRules = QStringLiteral("*=true\n"
                                     "qt.*.debug=false\n" /* Qt's own debug messages are way too much verbose */
+                                    "qt.rhi.general=true\n" /* Qt RHI general messages are not verbose */
                                     "qt.widgets.painting=false\n" /* Not necessary */);
     }
+    else
+    {
+        filterRules = QStringLiteral("qt.rhi.general=true\n");
+    }
 
     QLoggingCategory::setFilterRules(filterRules);
 }



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/b115943f3afbc88cf0c0eddc4944cb535f13f724...8548c6fbc52385f52aa037336b7a09e017d549ff

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/b115943f3afbc88cf0c0eddc4944cb535f13f724...8548c6fbc52385f52aa037336b7a09e017d549ff
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list