Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Forum Updated on Feb 6th

    Unsolved radio button with only the image

    General and Desktop
    2
    2
    628
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • canellas
      canellas last edited by canellas

      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!

      raven-worx 1 Reply Last reply Reply Quote 0
      • raven-worx
        raven-worx Moderators @canellas last edited by

        @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.

        --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
        If you have a question please use the forum so others can benefit from the solution in the future

        1 Reply Last reply Reply Quote 0
        • First post
          Last post