Results 1 to 3 of 3

Thread: QRadioButtons apperance

  1. #1
    Join Date
    Sep 2010
    Posts
    46
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default QRadioButtons apperance

    Hi there,

    since I came from Windows my first thought it would be very easy to do. It seems I was wrong or I am missing something.

    I have not found a simple way to force QRadioButton to paint itself as a QPushButton.

    The only solution i've found using QPushButtons in groupbox if it's clicked i'm checking state of qpushButton. if it's not checked i'm setting its property to checked then other buttons i'm gonna set unchecked. This way is so boring as i said is there anyway to use radiobuttons with push button appearance ?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QRadioButtons apperance

    Use QCommandLinkButton or add pushbuttons to an exclusive QButtonGroup.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. The following user says thank you to wysota for this useful post:

    nightroad (16th March 2011)

  4. #3
    Join Date
    Sep 2010
    Posts
    46
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QRadioButtons apperance

    Hi wysota thx for quick response, it was so helpfull ...
    Last edited by nightroad; 16th March 2011 at 12:00.

Similar Threads

  1. Replies: 7
    Last Post: 2nd September 2010, 17:48
  2. QColorDialog Apperance?
    By antonio.r.tome in forum Qt Programming
    Replies: 9
    Last Post: 16th April 2006, 07:43

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.