Results 1 to 2 of 2

Thread: How to set the validation for checkboxes?

  1. #1
    Join Date
    Aug 2012
    Posts
    16
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default How to set the validation for checkboxes?

    I am using 10 checkboxes in my program,and i want to check only 3 checkboxes at a time.so how to set the validation for this?

  2. #2
    Join Date
    Aug 2009
    Location
    coimbatore,India
    Posts
    314
    Thanks
    37
    Thanked 47 Times in 43 Posts
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: How to set the validation for checkboxes?

    hi,

    This is just a logical thing to do.
    nothing to do with Qt.


    on clicked(bool) signal u hav to count the number of checkbox which are checked.
    ex:
    do a foreach loop
    and hav a counter to find the number of chkboxes which are checked.

    hope it helps,
    Bala

Similar Threads

  1. XML Validation
    By NoRulez in forum Qt Programming
    Replies: 4
    Last Post: 15th September 2010, 13:07
  2. cross validation
    By mickey in forum General Discussion
    Replies: 0
    Last Post: 14th September 2009, 17:39
  3. Validation
    By Tavit in forum Qt Programming
    Replies: 2
    Last Post: 21st March 2009, 07:03
  4. Unique ID for a PC to use for Key Validation
    By nbkhwjm in forum Qt Programming
    Replies: 1
    Last Post: 9th April 2008, 23:13
  5. XML DTC validation problem
    By shailesh in forum Qt Programming
    Replies: 1
    Last Post: 16th March 2006, 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.