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. [Solved] How can I uncheck the qcheckbox?
QtWS25 Last Chance

[Solved] How can I uncheck the qcheckbox?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 4.7k 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.
  • A Offline
    A Offline
    annatz
    wrote on last edited by
    #1

    hi,

    I have created some checkboxes and when the user makes a choice and presses the button "ok", i want the checkboxes to be unchecked.

    How can i do this?

    1 Reply Last reply
    0
    • F Offline
      F Offline
      florent.revelut
      wrote on last edited by
      #2

      You can use the "setCheckState":http://doc.qt.nokia.com/4.6/qcheckbox.html#setCheckState method on your QCheckBox objects, in the code called when your button is clicked

      1 Reply Last reply
      0
      • JohanSoloJ Offline
        JohanSoloJ Offline
        JohanSolo
        wrote on last edited by
        #3

        You can also use "setChecked":http://doc.qt.nokia.com/4.6/qabstractbutton.html#checked-propset from QAbstractButton.

        `They did not know it was impossible, so they did it.'
        -- Mark Twain

        1 Reply Last reply
        0
        • A Offline
          A Offline
          annatz
          wrote on last edited by
          #4

          thank you both

          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