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. How to Use QFileSystemModel
QtWS25 Last Chance

How to Use QFileSystemModel

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 2.0k Views
  • 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.
  • U Offline
    U Offline
    undef_sense_of_humor
    wrote on last edited by
    #1

    Hi guys,

    I'm using QFileSystemModel and a view object in custom file dialog window implementation.

    My question is, from a performance stand-point, should I delete the QFileSystemModel instance when the dialog window is not visible?

    I'm wondering this because I read that QFileSystemModel actively monitors the file system and has a separate thread to do so. My thinking is, if QFileSystemModel is consuming resources "watching" the file system, then while my file dialog window is not being used perhaps it is best to destroy QFileSystemModel and recreate it when it's needed again?

    Or is it OK to leave it? What's best?

    Cheers

    1 Reply Last reply
    0
    • frankcyblogic.deF Offline
      frankcyblogic.deF Offline
      frankcyblogic.de
      wrote on last edited by
      #2

      Leave it. (If you want to have some fun, try to delete or move the directory it is watching;)

      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