[Qt-interest] setMouseTracking
"Alexander Carôt"
alexander_carot at gmx.net
Wed Jan 5 18:26:43 CET 2011
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 ?
Thanks
Alex
--
http://www.carot.de
http://www.triologue.de
Email : Alexander at Carot.de
Tel.: +49 (0)177 5719797
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
More information about the Qt-interest-old
mailing list