Quote Originally Posted by marcvanriet View Post
Set the 'checkable' property.
Quick note to the OP, you can use either
Qt Code:
  1. setProperty("checkable", QVariant(true));
To copy to clipboard, switch view to plain text mode 
or
Qt Code:
  1. setCheckable(true);
To copy to clipboard, switch view to plain text mode 
to do this. I guess some properties are so frequently useful that convenience functions have been added.