Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. File manager with size computation at selection

File manager with size computation at selection

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 297 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • mistralegnaM Offline
    mistralegnaM Offline
    mistralegna
    wrote on last edited by mistralegna
    #1

    Hello,

    I would like to implement a file manager that is able to compute the size of the selected elements in real time, at the selection. So far, when a folder is selected, I iterate recursively on all of its contents, trying to call fetchMore if necessary (i.e. canFetchMore returns true), but I am not sure this is the best implementation. Furthermore, I need to iterate twice : first to fetch all the contents, then to navigate through the folder structure. The navigation through the folder structure is done in a separated voidable thread, meanwhile the fetchMore is done in the main thread (because it seems that fetchMore starts QTimer, functionnality not.

    Have you some idea about a better implementation ?

    Thank you a lot !

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved