PDA

View Full Version : getExistingDirectory doesn not expand directory tree



franco.amato
16th April 2013, 02:57
Good evening,
I'm writing a code where I call the getExistingDirectory and the directory tree doesn't expand.
This is the code:


void MainWindow::on_sourceDirBrowseButton_clicked()
{
QString path = QFileDialog::getExistingDirectory(this, tr("Open Directory"),
m_application->userDataDir().path()); // This doesn't expand
if (!path.isEmpty())
{
m_application->setSourceDirPaths(QStringList(path));
}
}

I'm working under Windows XP.

Any help is appreciated.

Regards,
Franco

ChrisW67
16th April 2013, 03:22
What exactly does m_application->userDataDir().path() return?

franco.amato
16th April 2013, 03:55
Hi Chris,
it returns "C:/Documents and Settings/Usuario/Mis documentos/CertiBoxUserData"
and the dir exists

ChrisW67
16th April 2013, 05:03
When you say "doesn't expand" what do you mean? Are there subdirectories of ""C:/Documents and Settings/Usuario/Mis documentos/CertiBoxUserData" that you cannot access?

franco.amato
16th April 2013, 05:40
yes there are subdirectories and when I execute the dialog I have to click on the + symbol to see them.
I would open the dialog and see them immediately. I hope you can understand me