PDA

View Full Version : Dialog with a QFILEDIALOG prompt



scott_hollen
3rd June 2011, 03:38
Evening all --

So as not to re-invent the wheel I thought I'd throw this question out to the masses before I create a dialog.

I have several places in my app where I use QInputDialog to get text from a user but now I have a need of asking them for a working directory, so I'd also like to be able to use a QFileDialog within this to allow them to "browse" for the directory. Obviously there isn't an option for this with QInputDialog but I was wondering if there was a dialog already defined somewhere that did that...Basically a pop-up for directory path LE with Browse pushbutton option...

I can write this on my own but as always if something exists, or if there's already a working example somewhere, I'd rather start there...

thanks!


scott

Santosh Reddy
3rd June 2011, 08:47
I don't see options other than writing your own dialog to do so or to directly use QFileDialog::getExistingDirectory()

scott_hollen
4th June 2011, 23:37
Yea, that's what I thought -- thanks for your input...I use QFileDialog elsewhere but not as a pop-up...


scott