Results 1 to 4 of 4

Thread: Howto remove row from QListWidget

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2008
    Posts
    157
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Howto remove row from QListWidget

    I tried the following to remove a row from the list

    Qt Code:
    1. int row = listWidgetVideo->currentRow();
    2. listWidgetVideo->removeItemWidget(listWidgetVideo->item(row));
    To copy to clipboard, switch view to plain text mode 

    but nothing happens.

    How do I do this correct?

    EDIT:
    seems to be
    Qt Code:
    1. listWidgetVideo->takeItem(row);
    To copy to clipboard, switch view to plain text mode 
    Last edited by pospiech; 29th July 2008 at 19:25.

Similar Threads

  1. remove node in xml file
    By mattia in forum Newbie
    Replies: 1
    Last Post: 6th March 2008, 13:25
  2. Replies: 13
    Last Post: 15th December 2006, 11:52
  3. Replies: 1
    Last Post: 24th August 2006, 11:44
  4. QSettings again ... how to remove array elements
    By Mike in forum Qt Programming
    Replies: 4
    Last Post: 11th January 2006, 08:58

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
  •  
Qt is a trademark of The Qt Company.