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. Why QDir open the directory with a name like test.lnk failed!
Forum Updated to NodeBB v4.3 + New Features

Why QDir open the directory with a name like test.lnk failed!

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 3 Posters 497 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.
  • F Offline
    F Offline
    famoustang
    wrote on last edited by
    #1

    Hello, everyone:
    I have a problem using QDIR , QDir *dir = new QDir("D:\test\test.lnk"), dir points to the root directory D:\ instead of D:\test\test.lnk .Lnk is a directory (rename with.lnk suffix)

    Create a new folder and rename it test.lnk , In debug mode, observe infoList , the list is in the root directory. 
    

    development environment : Microsoft Windows 10 Build 19041 ,QT 5.7.0
    thanks.

    jsulmJ 1 Reply Last reply
    0
    • Kent-DorfmanK Offline
      Kent-DorfmanK Offline
      Kent-Dorfman
      wrote on last edited by
      #2

      don't use suffixes on directory names in windoze...especially the 'lnk' suffix, as lnk is windoze jargon for a symbolic link file.

      F 1 Reply Last reply
      0
      • F famoustang

        Hello, everyone:
        I have a problem using QDIR , QDir *dir = new QDir("D:\test\test.lnk"), dir points to the root directory D:\ instead of D:\test\test.lnk .Lnk is a directory (rename with.lnk suffix)

        Create a new folder and rename it test.lnk , In debug mode, observe infoList , the list is in the root directory. 
        

        development environment : Microsoft Windows 10 Build 19041 ,QT 5.7.0
        thanks.

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @famoustang I can reproduce this on Windows 10 with Qt 5.11.1 MinGW.
        Did you check the Qt bug tracker? You can file a bug if there is nothing yet for this issue.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        F 3 Replies Last reply
        0
        • Kent-DorfmanK Kent-Dorfman

          don't use suffixes on directory names in windoze...especially the 'lnk' suffix, as lnk is windoze jargon for a symbolic link file.

          F Offline
          F Offline
          famoustang
          wrote on last edited by
          #4

          @Kent-Dorfman thanks for your advice,but fault-tolerance processing need.

          1 Reply Last reply
          0
          • jsulmJ jsulm

            @famoustang I can reproduce this on Windows 10 with Qt 5.11.1 MinGW.
            Did you check the Qt bug tracker? You can file a bug if there is nothing yet for this issue.

            F Offline
            F Offline
            famoustang
            wrote on last edited by
            #5

            @jsulm thanks for your advice.

            1 Reply Last reply
            0
            • jsulmJ jsulm

              @famoustang I can reproduce this on Windows 10 with Qt 5.11.1 MinGW.
              Did you check the Qt bug tracker? You can file a bug if there is nothing yet for this issue.

              F Offline
              F Offline
              famoustang
              wrote on last edited by
              #6

              @jsulm https://bugreports.qt.io/browse/QTBUG-85058 someone reported.

              1 Reply Last reply
              0
              • jsulmJ jsulm

                @famoustang I can reproduce this on Windows 10 with Qt 5.11.1 MinGW.
                Did you check the Qt bug tracker? You can file a bug if there is nothing yet for this issue.

                F Offline
                F Offline
                famoustang
                wrote on last edited by
                #7

                @jsulm https://bugreports.qt.io/browse/QTBUG-6768?jql=text ~ "LNK"

                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