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. How can I open dotfiles using QFileDialog?

How can I open dotfiles using QFileDialog?

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 614 Views 2 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.
  • RevoltR Offline
    RevoltR Offline
    Revolt
    wrote on last edited by
    #1

    Setting the filter QDir::Hidden doesn't work. I want the dialog to show files starting with . by default, without having the user to use the cmd+shift+. keyboard shortcut.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      AFAIK, that's not possible. I don't remember you can configure that in macOS itself.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      RevoltR 1 Reply Last reply
      0
      • B Offline
        B Offline
        Bonnie
        wrote on last edited by
        #3

        I don't have a mac to test right now.
        But if you don't mind the dialog looking differently, you can try using QFileDialog::DontUseNativeDialog as the option.
        This will enable using Qt defined file dialog instead of system file dialog.
        Maybe it will response to QDir::Hidden.

        RevoltR 1 Reply Last reply
        0
        • SGaistS SGaist

          Hi,

          AFAIK, that's not possible. I don't remember you can configure that in macOS itself.

          RevoltR Offline
          RevoltR Offline
          Revolt
          wrote on last edited by
          #4

          @SGaist said in How can I open dotfiles using QFileDialog?:

          AFAIK, that's not possible.

          Is it a known bug? Or not yet implemented?

          I don't remember you can configure that in macOS itself.

          You can, using the NSOpenPanel's showsHiddenFiles property. I just tested it now to make sure.

          SGaistS 1 Reply Last reply
          0
          • B Bonnie

            I don't have a mac to test right now.
            But if you don't mind the dialog looking differently, you can try using QFileDialog::DontUseNativeDialog as the option.
            This will enable using Qt defined file dialog instead of system file dialog.
            Maybe it will response to QDir::Hidden.

            RevoltR Offline
            RevoltR Offline
            Revolt
            wrote on last edited by
            #5

            @Bonnie said in How can I open dotfiles using QFileDialog?:

            But if you don't mind the dialog looking differently, you can try using QFileDialog::DontUseNativeDialog as the option.

            Actually, I do want to use the native one, while, indeed, it works with Qt's one.

            1 Reply Last reply
            0
            • RevoltR Revolt

              @SGaist said in How can I open dotfiles using QFileDialog?:

              AFAIK, that's not possible.

              Is it a known bug? Or not yet implemented?

              I don't remember you can configure that in macOS itself.

              You can, using the NSOpenPanel's showsHiddenFiles property. I just tested it now to make sure.

              SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Revolt said in How can I open dotfiles using QFileDialog?:

              @SGaist said in How can I open dotfiles using QFileDialog?:

              AFAIK, that's not possible.

              Is it a known bug? Or not yet implemented?

              I don't remember you can configure that in macOS itself.

              You can, using the NSOpenPanel's showsHiddenFiles property. I just tested it now to make sure.

              Thanks for the reminder. I would say not implemented yet and related to QTBUG-65530.

              You should check the bug report system to see if you find something more and if not open a feature request for that.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              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