Re: Rotary (knob) Widget and MIDI Mixer Window

Ted Felix <ted-Ll1PANez7xxWk0Htik3J/[email protected]> Sun, 10 Aug 2025 10:51:34 -0400
Newsgroups gmane.comp.audio.rosegarden.user
Message-ID <[email protected]>
On 8/6/25 5:00 AM, Lorenzo Sutton wrote:
> The (blue in my case) tooltip with just the value is still 
> visible, not sure if with the new tooltip this would be somewhat redundant?

   The blue indicator is up while changing the value.  The tooltip is 
only available when hovering.  It goes away the moment you click.  They 
are both needed unless we go with something more complicated.

> the large tooltip is often placed in ways that my (slightly larger than 
> average) mouse cursor arrow covers parts of it... The placement of the 
> tooltips (in general) seems to be calculated based on widget position 
> and cursor so I'm not really sure if this can be mitigated or even 
> calculated.

   It looks like it can be overridden if we intercept the ToolTip event 
and make a QToolTip on our own.  QToolTip offers the ability to specify 
the position.  Qt will still display it at a fixed offset to that 
position, but we can fudge the numbers to get whatever offsets we want.

   It's a lot of work, though.  I don't see a simple way to do this in 
the API.  QWidget lets you setToolTip() and setToolTipDuration() but no 
setToolTipOffset().  Even better would be a more global setting that can 
be in the preferences and affect all of Qt without needing to change any 
existing code.

Ted.