[Qt-interest] setMouseTracking
Nikos Chantziaras
realnc at arcor.de
Wed Jan 5 19:34:45 CET 2011
On 01/05/2011 07:26 PM, "Alexander Carôt" wrote:
> in my app I set setMouseTracking to true in order to receive
>> MouseMove-Events even without a pressed mouse button. However, even though
>> hasMouseTracking() shows the respective "true" the handler is only triggered *with* a
>> pressed mouse button.
>>>
>>> Can anyone tell me what needs to be changed or what I am doing wrong ?
>>>
>>> Thanks in advance
>>
>> Are you sure it's the right widget? Sometimes it can get complicated if
>> you have widgets inside other widgets.
>
> I think it not very special: My main window inherits QWidget. On this widget I place the respective GUI elements (additional widgets). For the main window I setMouseTracking to true. Does this help to clarify the problem ?
Try setting it on every widget, not just the main window.
More information about the Qt-interest-old
mailing list