UnderMouse() signal ?
-
Hi, i wanna set QPushButton above others after pointing it by mouse.
I found:
underMouse () const : bool
and
raise()
Ok, so i would do :
@connect(but, SIGNAL(underMouse()),but, SLOT(raise()));@
but there is no signal underMouse().
Object::connect: No such signal QPushButton::underMouse() in window.cpp:8976So how can i use that in whole time of running program?
-
Try reimplementing this function in your own subclass of QPushButton:
http://doc.qt.nokia.com/4.7-snapshot/qabstractbutton.html#mouseMoveEvent