[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Control.MouseMove is triggered all the time
[Thread Prev] | [Thread Next]
- Subject: Re: Control.MouseMove is triggered all the time
- From: Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
- Date: Mon, 28 Apr 2025 00:55:00 +0200
- To: user@xxxxxxxxxxxxxxxxxxxxxx
Le 28/04/2025 à 00:45, Lee a écrit :
https://gambaswiki.org/wiki/comp/gb.qt4/control/.mousemove says, "By default, this event is raised only if a mouse button is pressed, or if the Tracking property is set."Even with Tracking = False and no mouse button pressed, the event is triggered. I have tried it with a GridView and a TreeView, and they both behave the same way.Is the documentation wrong, or is this a bug?
GridView, (and TreeView which is based on it) internally uses a ScrollArea with Tracking = True. So it will always track the mouse even if you set Tracking = False on the control.
The documentation is not wrong per se, but when you use compound controls, the result can be unexpected.
GridView has to track the mouse because it changes the mouse cursor according to its location inside the view.
Regards, -- Benoît Minisini.
Control.MouseMove is triggered all the time | Lee <t.lee.davidson@xxxxxxxxx> |