Results 1 to 2 of 2

Thread: clearing all textboxes on a form

  1. #1
    Join Date
    Dec 2010
    Posts
    3

    Default clearing all textboxes on a form

    is it possible to clear all the texxtboxes on a form qith a for each statement?

    saff

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: clearing all textboxes on a form

    Yes, of course. You just need to have (or query Qt for it using QObject::findChildren()) a list of all text boxes on your form.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. clearing a list.....
    By reshma in forum Qt Programming
    Replies: 7
    Last Post: 22nd March 2009, 15:28
  2. clearing a qlist..
    By reshma in forum Qt Programming
    Replies: 5
    Last Post: 15th March 2009, 07:23
  3. clearing lineEdits
    By Salazaar in forum Newbie
    Replies: 4
    Last Post: 4th June 2007, 21:02
  4. Clearing QDateEdit
    By jpujolf in forum Qt Programming
    Replies: 3
    Last Post: 27th July 2006, 21:19
  5. Clearing QTable
    By Lebowski in forum Newbie
    Replies: 1
    Last Post: 20th April 2006, 08:24

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.