Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved 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?

    Qt 6
    c++ qt model mvc
    2
    3
    203
    Loading More Posts
    • 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
      gouneken last edited by

      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!

      Gojir4 1 Reply Last reply Reply Quote 0
      • Gojir4
        Gojir4 @gouneken last edited by

        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 Reply Quote 2
        • Gojir4
          Gojir4 @gouneken last edited by

          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 Reply Quote 2
          • G
            gouneken @Gojir4 last edited by

            @Gojir4 thank you so much

            1 Reply Last reply Reply Quote 0
            • First post
              Last post