Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. [SOLVED] Disable/Enable CheckBox
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Disable/Enable CheckBox

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 2 Posters 2.4k Views 1 Watching
  • 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.
  • K Offline
    K Offline
    Kieren
    wrote on last edited by
    #1

    Hello,

    is there any simple way to disable a CheckBox?
    Meaning it does not respond to any mice or keyboard events any more
    and also to have the possibility to give it a "grayisch" disabled look.

    If there is no simple solution, has anyone already found a workaround and
    wants to share his/her solution?

    Thank you for your help
    Cheers
    Kieren

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Are you thinking of something like the "enabled":http://doc.qt.io/qt-5/qwidget.html#enabled-prop property ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • K Offline
        K Offline
        Kieren
        wrote on last edited by
        #3

        Hi,
        yes this was exactly what I was searching for.
        The QML Item has this property so the CheckBox too.
        Must have been blind to overlook this one while searching for disable.

        Thanks a lot and sorry for the stupid question

        Cheers
        Kieren

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          That's not a stupid question, it's a beginner one plus I've missed the fact that you where asking for QtQuick ;)

          Happy coding !

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

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