Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Mouse-over Event for QPushButton
Anh Phan last edited by
Hi everyone. The QPushButton doesn't have hover(mouse-over) slot. Do i have to subclass or is there a possibility to add this function to the qpushbutton?
Normally you subclass the pushbutton and add it.
When this is not practical, an event filter can be used but
subclass is both easier and faster. (IMHO)
Note. Using Creators promote feature, u can have QPushButtons in the UI replaced
with your subclass very easy.
Think of promote as "Replace at runtime" without you do anything.