From 3167d23a36ff5b9fd42105f763b9e19bf62596cb Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Thu, 12 Nov 2020 15:16:24 +0100 Subject: [PATCH] Fix a crash when showing tooltips Looks like we have omitter Q_OBJECT declaration in subclasses of TipLabel. This probably confuses accessibility support in Qt 6, as it reads the classname of the object. Apparently, the classname wasn't set properly. Task-number: QTCREATORBUG-24839 Change-Id: I5085e924fb3fa3a0f06d17372c7dc339db30226c Reviewed-by: Eike Ziller --- src/libs/utils/tooltip/tips.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libs/utils/tooltip/tips.h b/src/libs/utils/tooltip/tips.h index 53dde1f431d..ba5f4151013 100644 --- a/src/libs/utils/tooltip/tips.h +++ b/src/libs/utils/tooltip/tips.h @@ -61,6 +61,7 @@ using TextItem = std::pair; class TextTip : public TipLabel { + Q_OBJECT public: TextTip(QWidget *parent); @@ -80,6 +81,7 @@ private: class ColorTip : public TipLabel { + Q_OBJECT public: ColorTip(QWidget *parent);