Results 1 to 3 of 3

Thread: Click in QGroupBox

  1. #1
    skizzik Guest

    Default Click in QGroupBox

    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.

  2. #2
    Join Date
    Feb 2010
    Posts
    52
    Thanks
    6
    Thanked 2 Times in 2 Posts

    Default Re: Click in QGroupBox

    You could try sub-classing the QGroupBox and overriding the mouseReleaseEvent(). Unfortunately there is no mouseClickEvent().

  3. #3
    Join Date
    Jan 2011
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Click in QGroupBox

    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

Similar Threads

  1. QGroupBox
    By Devoraz in forum Newbie
    Replies: 1
    Last Post: 30th July 2009, 05:49
  2. Replies: 6
    Last Post: 5th June 2009, 10:38
  3. Replies: 2
    Last Post: 12th January 2009, 00:24
  4. QGraphicsScene Click / Double Click
    By philentropist in forum Qt Programming
    Replies: 1
    Last Post: 9th February 2007, 05:32
  5. Replies: 5
    Last Post: 12th January 2006, 16:40

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.