Results 1 to 11 of 11

Thread: How to distinguish the pushbutton clicked() signal source from many ?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    India
    Posts
    115
    Thanks
    3
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How to distinguish the pushbutton clicked() signal source from many ?

    Quote Originally Posted by yogeshm02
    QButtonGroup provides an abstract container into which button widgets can be placed. It does not provide a visual representation of this container (see QGroupBox for a container widget), but instead manages the states of each of the buttons in the group.
    Sorry, above is true for Qt4 only.

    But you can still omit border and title.

  2. #2
    Join Date
    Jan 2006
    Posts
    162
    Thanks
    9
    Qt products
    Qt3
    Platforms
    Windows

    Default Re: How to distinguish the pushbutton clicked() signal source from many ?

    If I can omit the border line and title of my buttonGroup it may be interesting. But I also need to include a pictutre in the group because the graphical representation I want to have is as follow : a picture centered in my group and many buttons all around my picture.

    I'll check this point in the afternoon.

  3. #3
    Join Date
    Jan 2006
    Location
    Athens - Greece
    Posts
    219
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to distinguish the pushbutton clicked() signal source from many ?

    Quote Originally Posted by yogeshm02
    Sorry, above is true for Qt4 only.

    But you can still omit border and title.
    Or you can just hide() the QButtonGroup, and use this method to add the QButtons to it:
    The button group is an invisible widget and the contained buttons have some other parent widget. In this usage, each button must be manually inserted, using insert(), into the button group and given an identifier.
    Quote from the QButtonGroup docs

Similar Threads

  1. pthread instead QThread
    By brevleq in forum Qt Programming
    Replies: 8
    Last Post: 23rd December 2008, 07:16
  2. Connection of custon signals/slots
    By brevleq in forum Qt Programming
    Replies: 2
    Last Post: 23rd December 2008, 07:04

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.