Results 1 to 2 of 2

Thread: remove all items from QListWidget

  1. #1
    Join Date
    Mar 2010
    Posts
    107
    Thanks
    22
    Qt products
    Qt4
    Platforms
    Windows

    Default remove all items from QListWidget

    Hi
    How is the best way to remove all items from a QlistWidget object

    TIA

    Graham

  2. #2
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: remove all items from QListWidget

    Tried
    Qt Code:
    1. void QListWidget::clear()
    To copy to clipboard, switch view to plain text mode 
    ?

Similar Threads

  1. Replies: 1
    Last Post: 11th May 2010, 02:52
  2. Qt 4.6 GraphicsView items remove problem
    By Piskvorkar in forum Qt Programming
    Replies: 10
    Last Post: 10th March 2010, 09:08
  3. Howto remove row from QListWidget
    By pospiech in forum Qt Programming
    Replies: 3
    Last Post: 29th July 2008, 19:32
  4. remove item from QListWidget
    By yushinee in forum Newbie
    Replies: 3
    Last Post: 2nd October 2007, 20:40
  5. Replies: 1
    Last Post: 24th August 2006, 11:44

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.