Results 1 to 2 of 2

Thread: How to clear All items on QTreeView ?

  1. #1
    Join Date
    Mar 2006
    Posts
    9
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default How to clear All items on QTreeView ?

    I want to delete all items on QTreeView

  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: How to clear All items on QTreeView ?

    Then delete them from the model and emit reset().

  3. The following user says thank you to wysota for this useful post:

    qintm (26th March 2006)

Similar Threads

  1. Removing items from qtreeview
    By Babak in forum Qt Programming
    Replies: 1
    Last Post: 5th February 2009, 19:44
  2. Replies: 1
    Last Post: 14th May 2008, 19:35
  3. QTreeView and expandable items
    By SiLiZiUMM in forum Qt Programming
    Replies: 6
    Last Post: 29th April 2008, 13:21
  4. Edit items on QTreeView + QDirModel
    By junior0007 in forum Qt Programming
    Replies: 4
    Last Post: 23rd November 2007, 07:16
  5. Drag & drop items on the same QTreeView
    By wind in forum Qt Programming
    Replies: 2
    Last Post: 11th October 2006, 14:29

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.