Qt Forum

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

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Unsolved Restrict user to change value of a Qradiobutton

    General and Desktop
    2
    2
    57
    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.
    • S
      SId7117 last edited by

      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 Reply Quote 0
      • Chris Kawa
        Chris Kawa Moderators last edited by

        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 Reply Quote 3
        • First post
          Last post