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. Restrict user to change value of a Qradiobutton

Restrict user to change value of a Qradiobutton

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 165 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.
  • S Offline
    S Offline
    SId7117
    wrote on last edited by
    #1

    HI,
    I have customised a qradiobutton to look like an led indicator. It will display a green red image when checked and a green led image when unchecked. Now i want this control to be checked only programmatically and restrict user to change value from the UI. Any help in this regard is greatly appreciated.

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      The easiest would be to disable it i.e. setDisabled(true). By default this grays it out, but since you're customizing the look anyway you might as well do it like that.

      1 Reply Last reply
      3

      • Login

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