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. find a path of a file

find a path of a file

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 372 Views 1 Watching
  • 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    a question, is there a way when a click in a file of a treeview to find this path so I can read or remove the file?

    ? JonBJ 2 Replies Last reply
    0
    • ? A Former User

      a question, is there a way when a click in a file of a treeview to find this path so I can read or remove the file?

      ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      @vale88 *its path I wanted to say

      mrjjM 1 Reply Last reply
      0
      • ? A Former User

        @vale88 *its path I wanted to say

        mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @vale88
        Hi
        Not really as the files could be anywhere.
        However, when you create the tree/model, could you not store the full path in
        the model also you can read it from there?
        Also if all files come from the same folder, its pretty easy to construct the full path
        manually.

        1 Reply Last reply
        3
        • ? A Former User

          a question, is there a way when a click in a file of a treeview to find this path so I can read or remove the file?

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by JonB
          #4

          @vale88
          If you are saying you have a QTreeView showing file paths, is it not suitable for a QFileSystemModel? That would give you access to paths etc.

          1 Reply Last reply
          2

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved