Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Qml custom treeview filebrowser
Forum Updated to NodeBB v4.3 + New Features

Qml custom treeview filebrowser

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
7 Posts 3 Posters 2.2k 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.
  • A Offline
    A Offline
    Apeksha
    wrote on last edited by
    #1

    Hi,

    I need custom file browser in tree view,already default is there but it works from 5.9 of Qt version,
    I am using 5.7.1 for my embedded device.
    Can anybody please post part of code.

    Thanks in advance.

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Hi!
      @Apeksha said in Qml custom treeview filebrowser:

      I need custom file browser in tree view,already default is there but it works from 5.9 of Qt version

      Which QML type are you talking about? I can't find a tree view or file browser in the list.

      A 1 Reply Last reply
      0
      • VRoninV Offline
        VRoninV Offline
        VRonin
        wrote on last edited by
        #3

        You can use QFileSystemModel on the C++ side displayed in a TreeView with this proxy (it's untested code) in between to support multiple columns

        "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
        ~Napoleon Bonaparte

        On a crusade to banish setIndexWidget() from the holy land of Qt

        A 1 Reply Last reply
        1
        • ? A Former User

          Hi!
          @Apeksha said in Qml custom treeview filebrowser:

          I need custom file browser in tree view,already default is there but it works from 5.9 of Qt version

          Which QML type are you talking about? I can't find a tree view or file browser in the list.

          A Offline
          A Offline
          Apeksha
          wrote on last edited by
          #4

          @Wieland

          https://doc.qt.io/qt-5/qtquickcontrols-filesystembrowser-example.html
          above link shows default filebrowser, which is not working in my version.

          VRoninV 1 Reply Last reply
          0
          • VRoninV VRonin

            You can use QFileSystemModel on the C++ side displayed in a TreeView with this proxy (it's untested code) in between to support multiple columns

            A Offline
            A Offline
            Apeksha
            wrote on last edited by
            #5

            @VRonin

            I need filebrowser to implent in qml, not in c++.

            1 Reply Last reply
            0
            • A Apeksha

              @Wieland

              https://doc.qt.io/qt-5/qtquickcontrols-filesystembrowser-example.html
              above link shows default filebrowser, which is not working in my version.

              VRoninV Offline
              VRoninV Offline
              VRonin
              wrote on last edited by
              #6

              @Apeksha said in Qml custom treeview filebrowser:

              above link shows default filebrowser

              @Apeksha said in Qml custom treeview filebrowser:

              I need filebrowser to implent in qml

              If you read the link you posted you realise it's doing exactly what I suggested

              "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
              ~Napoleon Bonaparte

              On a crusade to banish setIndexWidget() from the holy land of Qt

              A 1 Reply Last reply
              0
              • VRoninV VRonin

                @Apeksha said in Qml custom treeview filebrowser:

                above link shows default filebrowser

                @Apeksha said in Qml custom treeview filebrowser:

                I need filebrowser to implent in qml

                If you read the link you posted you realise it's doing exactly what I suggested

                A Offline
                A Offline
                Apeksha
                wrote on last edited by
                #7

                @VRonin

                I have used filedialog, its working fine but when I am trying to open filedialog it was opening whole screen and open and cancel buttons were not coming.
                I am trying it for linux .O.S details are as follows:
                Linux zcu102_base_trd 4.9.0 #5 SMP aarch64 GNU/Linux
                Can anyone please help me.
                Thanks in advance

                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