File dialog does not start in home
Closed, ResolvedPublic


We are using

QUrl fileName = QFileDialog::getOpenFileUrl(this, i18n("Open GCode"),
            QDir::homePath(),i18n("GCode (*.gco *.gcode)"));

this for some reason does not open to the home directory. If we use

QString fileName =  QFileDialog::getOpenFileName(this, i18n("Open GCode"),
                QDir::homePath(),i18n("GCode (*.gco *.gcode)"));

it works but then we can't open stuff from nfs shares...

According to the documents they should both do the same but one will return a QUrl and enables the ability to open remote files. If we decide to go with the "name" verison we get a QString and no ability to open remote files.