Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
UnderMouse() signal ?
roosaw last edited by
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?
situ117 last edited by
Try reimplementing this function in your own subclass of QPushButton:
baysmith last edited by
Alternatively, you can install an event filter which looks for enter and leave events.