UnderMouse() signal ?
Hi, i wanna set QPushButton above others after pointing it by mouse.
underMouse () const : bool
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:8976
So how can i use that in whole time of running program?
Try reimplementing this function in your own subclass of QPushButton:
Alternatively, you can install an event filter which looks for enter and leave events.