Results 1 to 2 of 2

Thread: How to clear the items of a row from a QTableWidget

  1. #1
    Join Date
    Jun 2006
    Location
    San Diego, USA
    Posts
    95
    Thanks
    9
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default How to clear the items of a row from a QTableWidget

    Hi All,
    How to clear the items of a row from a QTableWidget without changing the dimensions of a table?
    Example: Table has 20 Rows and 11 Columns
    In the first iteration, if the table has updated values till 16 Rows , and in next iteration if table has got values to update only for 15Rows , it should show the updated values for 15 Rows only, but it is also showing 16Row data, which is data of previous iteration data.
    So how to clear the row contents without disturbing the table size?

    Thanks & Regards,
    Arun

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: How to clear the items of a row from a QTableWidget

    Delete previous items and create & assign new items?
    J-P Nurmi

Similar Threads

  1. QTableWidget: set items disappear after new insertion
    By Raccoon29 in forum Qt Programming
    Replies: 6
    Last Post: 16th March 2008, 18:28
  2. adding items in qtablewidget
    By Djony in forum Qt Programming
    Replies: 17
    Last Post: 24th November 2006, 10:03
  3. Selective highlighting of Items
    By Kapil in forum Qt Programming
    Replies: 3
    Last Post: 26th May 2006, 12:20
  4. How to clear All items on QTreeView ?
    By qintm in forum Qt Programming
    Replies: 1
    Last Post: 26th March 2006, 11:39
  5. Replies: 6
    Last Post: 5th March 2006, 21:05

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.