PDA

View Full Version : Click in QGroupBox



skizzik
13th January 2011, 14:15
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.

chris_helloworld
13th January 2011, 15:30
You could try sub-classing the QGroupBox and overriding the mouseReleaseEvent(). Unfortunately there is no mouseClickEvent().

ivan.todorovich
19th January 2011, 03:19
Hi,

I've created a Jira Ticket (http://bugreports.qt.nokia.com/browse/QTBUG-16732) 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