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. What means "Don`t resolve symlinks" (QFileDialog::DontResolveSymlinks)?

What means "Don`t resolve symlinks" (QFileDialog::DontResolveSymlinks)?

Scheduled Pinned Locked Moved General and Desktop
8 Posts 2 Posters 6.9k 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.
  • S Offline
    S Offline
    Streight
    wrote on last edited by
    #1

    When using the function

    @QString QFileDialog::getExistingDirectory ( QWidget * parent = 0, const QString & caption = QString(), const QString & dir = QString(), Options options = ShowDirsOnly )@

    I can use the option parameter @QFileDialog::DontResolveSymlinks@ like

    @QString dir = QFileDialog::getExistingDirectory(this, tr("Open Directory"),
    "/home",
    QFileDialog::ShowDirsOnly
    | QFileDialog::DontResolveSymlinks);@

    What does @QFileDialog::DontResolveSymlinks@ mean? I am german and I could not find a good translation for this :)).

    I`m Streight ;).

    1 Reply Last reply
    0
    • W Offline
      W Offline
      Woody
      wrote on last edited by
      #2

      If this is checked, symlinks won't be resolved. So if you have:
      dir1 -> ../
      dir2 -> dir3
      dir4 -> dir5

      If this would be resolved, it will give you ../dir3/dir5
      But if this is set to true, these symlinks won't be resolved.

      What are symlinks (symbolic links)? You can find more about them here: "Symbolic Links Wiki":http://en.wikipedia.org/wiki/Symbolic_link

      I don't really know if I'm right with this though.

      File not found. Nobody leave the room!

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Streight
        wrote on last edited by
        #3

        Ok, as far as I understand now a symlink (symbolic link) is a kind of connection that when clicked "activates/opens" another file/directory etc. . In the above described case of yours opening dir2 opens dir3, dir4 opens dir5. When setting @QFileDialog::DontResolveSymlinks@ those connections won`t work. Right? greetings

        I`m Streight ;).

        1 Reply Last reply
        0
        • W Offline
          W Offline
          Woody
          wrote on last edited by
          #4

          I idd think it is something like this, but please don't take me on my words.

          I have never worked with this kind of linking.

          File not found. Nobody leave the room!

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Streight
            wrote on last edited by
            #5

            xD, ok so I better wait until someone who knows this affirms your thoughts. :))

            I`m Streight ;).

            1 Reply Last reply
            0
            • W Offline
              W Offline
              Woody
              wrote on last edited by
              #6

              That is an option, or you can try to put something together yourself and see what it does. Always lots of fun ;)

              But you can wait for someone more experienced on this topic.

              File not found. Nobody leave the room!

              1 Reply Last reply
              0
              • S Offline
                S Offline
                Streight
                wrote on last edited by
                #7

                Oh, I already have put everything together - means my project is finished :)). Just have to make clear some questions that are left. thx for the support anyway :D

                I`m Streight ;).

                1 Reply Last reply
                0
                • W Offline
                  W Offline
                  Woody
                  wrote on last edited by
                  #8

                  No problem. That's why these forums exists ;)

                  File not found. Nobody leave the room!

                  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