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
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