Felix Paul Kühne pushed to branch master at VideoLAN / VLC
Commits:
053b329b by Fatih Uzunoglu at 2026-06-17T17:59:42+02:00
qt: fix crash with Qt 6.12.0-beta1
With Qt 6.12 (f55a093), the name of the internal property
that pins the tool tip instance changes because that name
is now used by `QQuickAttachedPropertyPropagator` for
another purpose.
Ideally we should be using a custom "VLC" style, where we
would not need to do this, but we have still not reached a
consensus on that.
- - - - -
1 changed file:
- modules/gui/qt/maininterface/mainctx.cpp
Changes:
=====================================
modules/gui/qt/maininterface/mainctx.cpp
=====================================
@@ -1082,7 +1082,11 @@ void MainCtx::setAttachedToolTip(QObject *toolTip)
assert(engine->objectOwnership(toolTip) ==
QQmlEngine::ObjectOwnership::JavaScriptOwnership);
// Dynamic internal property:
+#if QT_VERSION < QT_VERSION_CHECK(6, 12, 0)
static const char* const name = "_q_QQuickToolTip";
+#else
+ static const char* const name = "_q_shared_QQuickToolTip";
+#endif
if (const auto obj = engine->property(name).value<QObject *>())
{
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/053b329b1e22e45868310e9e02f24c13b4731ba5
--
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/053b329b1e22e45868310e9e02f24c13b4731ba5
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
_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits