Qt Forum

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

    Solved Windows file explorer style window

    General and Desktop
    2
    6
    557
    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.
    • B
      bluscape last edited by

      I am busy writing a disk editor for a file system not recognized by windows.
      How would I go about creating a Windows Explorer type window with folder icons in QT? (See image)
      I mean I can get creative but will appreciate some ideas or maybe someone has already done it.

      0_1567752059408_QTExplorer.jpg

      1 Reply Last reply Reply Quote 0
      • mrjj
        mrjj Lifetime Qt Champion last edited by mrjj

        Hi
        https://doc.qt.io/qt-5/qfilesystemmodel.html
        and a Tree view in icon mode will get you a good beginning.

        1 Reply Last reply Reply Quote 1
        • B
          bluscape last edited by

          I will have a look at that thanks. I was thinking treeview as that will be very easy, but I'd prefer to have a window layout with icons.

          mrjj 1 Reply Last reply Reply Quote 0
          • mrjj
            mrjj Lifetime Qt Champion @bluscape last edited by

            Hi
            well i used
            https://arunpkqt.wordpress.com/2017/01/05/custom-filesystemmodel-display/
            since i had issues with QFileSystemModel in regards to the top item.
            You could maybe use ListWidget and code from this model to get the dir and files.

            1 Reply Last reply Reply Quote 1
            • B
              bluscape last edited by

              Ok, I managed to get it working. I just used QListView components.

              0_1568009469678_Explorer.jpg

              1 Reply Last reply Reply Quote 1
              • mrjj
                mrjj Lifetime Qt Champion last edited by

                Hi
                Super. it looks nice.
                Please post mark as solved if possible.

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