[Qt-interest] newbie: facing small issue, how to create new dir from a dialog
john doe
thebiggestbangtheory at gmail.com
Tue May 5 22:26:56 CEST 2009
Hello all,
Things are going well thanks to all the help from the group
members :-) . Currently I am trying to pop up a dialog box which will allow
a user to navigate to a directory. I am using
[code]
//This function allows for the user to
//select a path
void DialogImpl::getPathdir()
{
QString path;
path = QFileDialog::getExistingDirectory(this, tr("Open Directory"),
"/home",
QFileDialog::ShowDirsOnly
| QFileDialog::DontResolveSymlinks);
//set the text of the text box to the path
outdirlineEdit->setText( path );
}
[/code]
I want the dialog box to show an option for creating a new dir. I have
looked at QFileDialog and have not seen a public static function like this,
also in QDir I can see a mkdir function but how can I make a dialog pop up
using QDir?? I can't, right?
Thanks :-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090505/8c85536b/attachment.html
More information about the Qt-interest-old
mailing list