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. graying out
Qt 6.11 is out! See what's new in the release blog

graying out

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 413 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
    Shines
    wrote on last edited by
    #1

    How to gray out a switch button?

    1 Reply Last reply
    0
    • qwasder85Q Offline
      qwasder85Q Offline
      qwasder85
      wrote on last edited by qwasder85
      #2

      myButton->setEnabled(false);

      Of course this also makes it unresponsive. It's disabled.

      1 Reply Last reply
      1
      • S Offline
        S Offline
        Shines
        wrote on last edited by
        #3

        what is the difference between setenabled and setDisabled, can they be used interchangebly with change in bool value

        qwasder85Q 1 Reply Last reply
        0
        • S Shines

          what is the difference between setenabled and setDisabled, can they be used interchangebly with change in bool value

          qwasder85Q Offline
          qwasder85Q Offline
          qwasder85
          wrote on last edited by
          #4

          @Shines said in graying out:

          what is the difference between setenabled and setDisabled, can they be used interchangebly with change in bool value

          Yes, I think so.

          1 Reply Last reply
          2

          • Login

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