This seems to be a very peculiar problem which I have been working on for weeks together now. I have written the following code in Qt to move though the directories. This code works fine on my laptop which runs on Ubuntu 13.04. But when the same code is built on openSUSE, the directories are not changed in the file dialog.
void example::on_pushButton_7_clicked()
{
mainFileName =
(mode == "2D")?
QFileDialog::getOpenFileName(this, tr("MAIN File"),
"../2DPrograms/" , tr("Files (*.*)")):
QFileDialog::getOpenFileName(this, tr("Open Example File"),
"../3DPrograms/" , tr("Files (*.*)"));
ui->mainFileName->setText(mainFileName);
}
Why does this happen? Is there any other way by which I can move through the directories?