Unsolved How can I open dotfiles using QFileDialog?
-
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 thecmd
+shift
+.
keyboard shortcut. -
Hi,
AFAIK, that's not possible. I don't remember you can configure that in macOS itself.
-
I don't have a mac to test right now.
But if you don't mind the dialog looking differently, you can try usingQFileDialog::DontUseNativeDialog
as the option.
This will enable using Qt defined file dialog instead of system file dialog.
Maybe it will response toQDir::Hidden
. -
@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. -
@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.
-
@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.