Results 1 to 3 of 3

Thread: floderview

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2011
    Location
    coimbatore
    Posts
    80
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11
    Thanks
    1
    Thanked 5 Times in 5 Posts

    Default floderview

    hi,
    i have created one gui like image view using folderview listmodel.....in this model i have images now my question is how to select images(check box) this selected images i want to delete ..how can i do ..please provide some solutions....here i attached my gui
    Attached Images Attached Images

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: floderview

    Iterate over the selected items and delete the related files either through the model or directly (see QFileSystemModel or QFile). What is the problem?

  3. #3
    Join Date
    Mar 2011
    Location
    Coimbatore,TamilNadu,India
    Posts
    382
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    10
    Thanked 13 Times in 12 Posts

    Default Re: floderview

    Get selected item one at a time from folder list view. Just use foreach loop and get items then, remove it. Else if you dont want to see those. just use hide/show. So that you can take images whose visibility is true. This is in the case if you dont want to use index values. All the best.

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.