I have a number of QGroupBox:es and now I have to catch any mouseclicks inside. If the mouse clicks in the box, a function should run. Is there an easy way to do this? The clicked()-method is just for its checkbox and not for the groupbox itself.
I have a number of QGroupBox:es and now I have to catch any mouseclicks inside. If the mouse clicks in the box, a function should run. Is there an easy way to do this? The clicked()-method is just for its checkbox and not for the groupbox itself.
You could try sub-classing the QGroupBox and overriding the mouseReleaseEvent(). Unfortunately there is no mouseClickEvent().
Hi,
I've created a Jira Ticket suggesting the addition of general QWidget Signals to notify relevant events (just like clicked).
Please if you'd like this feature in Qt read and vote this ticket.
http://bugreports.qt.nokia.com/browse/QTBUG-16732
Bookmarks