PDA

View Full Version : QFileDialog create or open existing directory



hypnotic401
13th December 2012, 14:58
Hey,

i was wondering if it is possible to make QFileDialog get an existing directory OR allow the user to type in a new directory name an click save (I will handle the mkdir on the fileSelected signal which is emitted on dialog accept).

anda_skoa
15th December 2012, 17:19
I think the dialog supports creating a directory in itself, but what you could do is to create the dialog with FileMode AnyFiles and hide non-directories with setOption(ShowDirsOnly).

Cheers,
_