Results 1 to 15 of 15

Thread: How can I remove a list of selected items in the QListView in QT 4.6.?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2012
    Posts
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How can I remove a list of selected items in the QListView in QT 4.6.?

    No problem, I actually did this before.
    But I got my items from a rootpath. So I dont geht the updates "deleted-list", no he always shows me the pathlist.
    Last edited by Bloody; 14th September 2012 at 10:09.

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

    Default Re: How can I remove a list of selected items in the QListView in QT 4.6.?

    Quote Originally Posted by Bloody View Post
    But I got my items from a rootpath. So I dont geht the updates "deleted-list", no he always shows me the pathlist.
    I don't understand what you mean by that.
    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.


  3. #3
    Join Date
    Sep 2012
    Posts
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How can I remove a list of selected items in the QListView in QT 4.6.?

    Sorry, that I could not answer these days. So actually I want help..

    To my problem: I want a listfiew displaying files from a rootpath. 'Till here the top solution is pretty helpful. But the next step I want to go is to delete some selected files but the solution in this thread is not working as I want to.
    I select items i want to delete(working well), press the "delete files" button and nothing happens. I guess the problem here is the self-updating listview. Over and above I actually want to build a "copy-program". Therefor you select some files from the listview and press "delete". Then you "save" the rest in a new folder. The system creates a new folder in any path with a copy of the left files in the listfiew.
    But back to my update problem: If I press delete, nothing happens... ? And if I create new files in my path, they self-update into the listview. My idea: How to create listviewitems which are actually files able to be deleted out of the listview? How about this idea?

  4. #4
    Join Date
    Nov 2009
    Posts
    61
    Qt products
    Qt4
    Platforms
    MacOS X Windows
    Thanks
    9
    Thanked 3 Times in 3 Posts

    Default Re: How can I remove a list of selected items in the QListView in QT 4.6.?

    QFileSystemModel provides simple interface to operate on local file system. If you connect this with a List View I think it will sort out your problem.

Similar Threads

  1. Remove selected rows from a QTableView
    By niko in forum Qt Programming
    Replies: 4
    Last Post: 3rd March 2016, 12:49
  2. Replies: 6
    Last Post: 27th March 2010, 05:42
  3. QListview set selected item
    By Freeman551 in forum Qt Programming
    Replies: 1
    Last Post: 25th December 2009, 00:17
  4. Replies: 5
    Last Post: 2nd April 2007, 08:57
  5. Remove selected QListWidgetItem
    By xgoan in forum Newbie
    Replies: 7
    Last Post: 28th September 2006, 14:42

Tags for this Thread

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.