Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Which class allows the analysis of files and folders present on the hard drive and their return in the form of a ready-to-use model?

Which class allows the analysis of files and folders present on the hard drive and their return in the form of a ready-to-use model?

Scheduled Pinned Locked Moved Solved Qt 6
c++ qtmodelmvc
3 Posts 2 Posters 563 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.
  • G Offline
    G Offline
    gouneken
    wrote on last edited by
    #1

    Good evening to the whole community, I would like to know which class present in the qt6 framework allows the analysis of files and folders present on the hard disk in order to use it in the form of a model. In fact, I need it to work using the MVC architecture that I am currently learning. I was told to use "QDirModel" for this, but I cannot find the specification for this class in the documentation and when I include it in my project file, it is said to be nonexistent. I don't know if it exists, so I'm asking if there is a similar class or are the functionality of this class included in other classes I need to include.

    Thank you for your attention!

    Gojir4G 1 Reply Last reply
    0
    • G gouneken

      Good evening to the whole community, I would like to know which class present in the qt6 framework allows the analysis of files and folders present on the hard disk in order to use it in the form of a model. In fact, I need it to work using the MVC architecture that I am currently learning. I was told to use "QDirModel" for this, but I cannot find the specification for this class in the documentation and when I include it in my project file, it is said to be nonexistent. I don't know if it exists, so I'm asking if there is a similar class or are the functionality of this class included in other classes I need to include.

      Thank you for your attention!

      Gojir4G Offline
      Gojir4G Offline
      Gojir4
      wrote on last edited by
      #2

      Hi @gouneken ,

      What you are looking for is QFileSystemModel

      QDirModel was already obsolete in Qt5 and has been removed in Qt6.

      G 1 Reply Last reply
      2
      • Gojir4G Gojir4

        Hi @gouneken ,

        What you are looking for is QFileSystemModel

        QDirModel was already obsolete in Qt5 and has been removed in Qt6.

        G Offline
        G Offline
        gouneken
        wrote on last edited by
        #3

        @Gojir4 thank you so much

        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