Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. radio button with only the image
Forum Updated to NodeBB v4.3 + New Features

radio button with only the image

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 854 Views
  • 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.
  • C Offline
    C Offline
    canellas
    wrote on 22 May 2016, 23:02 last edited by canellas
    #1

    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!

    R 1 Reply Last reply 23 May 2016, 05:42
    0
    • C canellas
      22 May 2016, 23:02

      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!

      R Offline
      R Offline
      raven-worx
      Moderators
      wrote on 23 May 2016, 05:42 last edited by
      #2

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

      1/2

      22 May 2016, 23:02

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved