Results 1 to 2 of 2

Thread: About QCheckBox

  1. #1
    Join Date
    Apr 2010
    Posts
    3
    Qt products
    Qt3 Qt4 Qt/Embedded

    Question About QCheckBox

    I am a freshman here for helping.
    The Qt3 uses Key_Space to set a checkbox checked, now I want to use the Key_Enter to chose the selected checkbox , what should I do? Thanks a lot.

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: About QCheckBox

    Install a event filter on the check box. and set the state if Key_Enter is received for that.
    Other way would be to subclass QCheckBox and override keyPressEvent.

Similar Threads

  1. Which QCheckBox has been checked?
    By alexandernst in forum Newbie
    Replies: 2
    Last Post: 14th September 2009, 10:09
  2. QTreeWidget and QCheckBox
    By mydear1986 in forum Qt Programming
    Replies: 1
    Last Post: 12th April 2009, 09:33
  3. QCheckbox label
    By drkbkr in forum Qt Programming
    Replies: 1
    Last Post: 19th January 2009, 19:58
  4. QCheckBox value
    By Koas in forum Qt Programming
    Replies: 2
    Last Post: 19th January 2009, 13:33
  5. QCheckbox
    By sonuani in forum Qt Programming
    Replies: 1
    Last Post: 19th February 2008, 13:12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.