radio button with only the image



  • Hi!

    Is there a way of QRadioButton to display the 'icon' property, but not the white circle?

    Or is there a way to have a group of QToolButton, and when the user clicks on one of them, it stays pressed, while the others are automaticaly unpressed?

    TIA!


  • Moderators

    @canellas said:

    Is there a way of QRadioButton to display the 'icon' property, but not the white circle?

    about what white circle are you talking? RadioButtons (widgets in general) are painted in the antive platfrom style, so they appear differently on each system.
    But generally you can use stylesheets to alter the look & feel.

    Or is there a way to have a group of QToolButton, and when the user clicks on one of them, it stays pressed, while the others are automaticaly unpressed?

    Basically you use QActionGroup (and set it to exclusive). But i've never tried it with QActions in a toolbar. Would be interesting if this also works.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.