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. QFileDialog::getOpenFileName can't jump to the right directory on mac
Qt 6.11 is out! See what's new in the release blog

QFileDialog::getOpenFileName can't jump to the right directory on mac

Scheduled Pinned Locked Moved Unsolved General and Desktop
13 Posts 4 Posters 2.1k 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.
  • P Offline
    P Offline
    Princein
    wrote on last edited by
    #4

    here is the picture:

    alt text

    jsulmJ 1 Reply Last reply
    0
    • P Princein

      here is the picture:

      alt text

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

      @Princein I still can't see it. File upload often does not work here. You can upload it to some file sharing service and post a link here.

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

      P 1 Reply Last reply
      0
      • jsulmJ jsulm

        @Princein I can't see the picture.
        Is /Users/FaceUnity/Library/Caches/FUCreator/Projects a valid path? Can you open it in Finder?
        Also, do you have access to all these directories in the path?

        P Offline
        P Offline
        Princein
        wrote on last edited by
        #6

        @jsulm yes, the /Users/FaceUnity/Library/Caches/FUCreator/Projects is a valid path!, I use the 'open' command can open the /Users/FaceUnity/Library/Caches/FUCreator/Projects directory,but use the QFileDialog::getOpenFileName can't open the 'Projects' and shows me the 'Users' directory!

        J.HilkJ 1 Reply Last reply
        0
        • P Princein

          @jsulm yes, the /Users/FaceUnity/Library/Caches/FUCreator/Projects is a valid path!, I use the 'open' command can open the /Users/FaceUnity/Library/Caches/FUCreator/Projects directory,but use the QFileDialog::getOpenFileName can't open the 'Projects' and shows me the 'Users' directory!

          J.HilkJ Online
          J.HilkJ Online
          J.Hilk
          Moderators
          wrote on last edited by
          #7

          @Princein what qt version is this?


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          P 1 Reply Last reply
          0
          • jsulmJ jsulm

            @Princein I still can't see it. File upload often does not work here. You can upload it to some file sharing service and post a link here.

            P Offline
            P Offline
            Princein
            wrote on last edited by
            #8

            @jsulm https://github.com/iOSPrincekin/Qt/blob/master/QA/10.png

            1 Reply Last reply
            0
            • J.HilkJ J.Hilk

              @Princein what qt version is this?

              P Offline
              P Offline
              Princein
              wrote on last edited by
              #9

              @J.Hilk Qt 5.6.1, because my company code history reason, I must use the Qt 5.6.1!

              J.HilkJ 1 Reply Last reply
              0
              • P Princein

                @J.Hilk Qt 5.6.1, because my company code history reason, I must use the Qt 5.6.1!

                J.HilkJ Online
                J.HilkJ Online
                J.Hilk
                Moderators
                wrote on last edited by
                #10

                @Princein
                IIRC there was a problem with getOpenFileName in one of the 5.12 releases, but that clearly does not apply to your case...


                Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                Q: What's that?
                A: It's blue light.
                Q: What does it do?
                A: It turns blue.

                P 1 Reply Last reply
                0
                • J.HilkJ J.Hilk

                  @Princein
                  IIRC there was a problem with getOpenFileName in one of the 5.12 releases, but that clearly does not apply to your case...

                  P Offline
                  P Offline
                  Princein
                  wrote on last edited by
                  #11

                  @J.Hilk said in QFileDialog::getOpenFileName can't jump to the right directory on mac:

                  in
                  IIRC there was a problem with getOpenFileName in one of the 5.12 releases, but that clearly does not apply to your case...

                  but, I certainly have this problem, what should I do? can you give me some suggestion!

                  J.HilkJ 1 Reply Last reply
                  0
                  • P Princein

                    @J.Hilk said in QFileDialog::getOpenFileName can't jump to the right directory on mac:

                    in
                    IIRC there was a problem with getOpenFileName in one of the 5.12 releases, but that clearly does not apply to your case...

                    but, I certainly have this problem, what should I do? can you give me some suggestion!

                    J.HilkJ Online
                    J.HilkJ Online
                    J.Hilk
                    Moderators
                    wrote on last edited by
                    #12

                    @Princein
                    well get the source qt (QtBase- module) and inspect the QFileDialog class.

                    Fix it and compile it.

                    You should check if your issue is still there with the latest QtVersion and if it's fixed there, you can simply compare the source code to find and fix the issue


                    Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                    Q: What's that?
                    A: It's blue light.
                    Q: What does it do?
                    A: It turns blue.

                    P 1 Reply Last reply
                    0
                    • J.HilkJ J.Hilk

                      @Princein
                      well get the source qt (QtBase- module) and inspect the QFileDialog class.

                      Fix it and compile it.

                      You should check if your issue is still there with the latest QtVersion and if it's fixed there, you can simply compare the source code to find and fix the issue

                      P Offline
                      P Offline
                      Princein
                      wrote on last edited by
                      #13

                      @J.Hilk thanks a lot!

                      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