Results 1 to 3 of 3

Thread: stylesheet of radiobutton

  1. #1
    Join Date
    Apr 2012
    Posts
    12
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default stylesheet of radiobutton

    How to change the color of indicators in checkbox and radiobutton.
    I tried something like this for checkbox
    checkbox1->setStyleSheet("spacing: 5px;::indicator:checked { width: 15px; height: 15px;border-width: 2px;background:white; border-style: outset; border-color: blue; }");

    but if i try it. I am not able to see the checkmark over it
    .
    And i didn't find anything for radiobutton.
    I searched and applied some code but none working

  2. #2
    Join Date
    Sep 2011
    Location
    Portugal
    Posts
    25
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: stylesheet of radiobutton


  3. #3
    Join Date
    Apr 2012
    Posts
    12
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: stylesheet of radiobutton

    Sorry but i don't want to use images
    i need to recolor radiobutton's center striker to different color .
    may be stylesheet can do this?
    but not able to find the proper way to implement

Similar Threads

  1. tab order and QButtonGroup and radioButton
    By somename in forum Qt Programming
    Replies: 14
    Last Post: 12th January 2016, 12:00
  2. checkbox and radiobutton in treeview
    By ErmandoFerrari in forum Qt Programming
    Replies: 1
    Last Post: 8th May 2010, 19:33
  3. radiobutton behavior on menubar
    By sp4rk3r in forum Qt Programming
    Replies: 2
    Last Post: 15th July 2008, 04:37
  4. How to do this with StyleSheet
    By yxmaomao in forum Qt Programming
    Replies: 5
    Last Post: 30th May 2008, 08:54
  5. radiobutton output file
    By nitriles in forum Qt Programming
    Replies: 5
    Last Post: 20th September 2007, 09: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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.