Skip to content

WIP: ToolTip: Set popupType Window

Kai Uwe Broulik requested to merge work/kbroulik/tooltip-window into master

New in Qt 6.8, lets us put tooltips into a separate window so they can exceed the parent window's bounds.

This also corrects the use of "inset", which, when negative, is designed for adding shadows around items. Previously, we could just bleed outside the item's bounds. However, with it being a dedicated window, it's important to do this properly, so Qt can account for that in its popup window placement and sizing.


Sadly, placement isn’t fully working.

While it’s fine in most cases

Screenshot_20241204_193522

in the most prominent case I wanted to fix (KRunner), the tooltip is placed awkwardly ontop of the button.

Screenshot_20241204_193217

Worse, when the tooltip shows, the button becomes unhovered, and the tooltip closes immediately again. This seems to be the case even for its shadow (probably no input mask set), so often the tooltip just flashes in and back out.

Edited by Kai Uwe Broulik

Merge request reports

Loading