diff --git a/src/libs/utils/tooltip/tooltip.cpp b/src/libs/utils/tooltip/tooltip.cpp index 94d8a4c1643..681524372d1 100644 --- a/src/libs/utils/tooltip/tooltip.cpp +++ b/src/libs/utils/tooltip/tooltip.cpp @@ -155,6 +155,8 @@ void ToolTip::show( { if (content && content->count()) { auto tooltipWidget = new FakeToolTip; + // limit the size of the widget to 90% of the screen size to have some context around it + tooltipWidget->setMaximumSize(QGuiApplication::screenAt(pos)->availableSize() * 0.9); if (contextHelp.isNull()) { tooltipWidget->setLayout(content); } else {