Error using getOpenFileName on Linux
-
wrote on 22 Jun 2013, 12:04 last edited by
when using this line to open dialog file this Error happened and crash my progarm
QString strFileName = QFileDialog::getOpenFileName(this, tr("Open File"), QDir::rootPath(),"Library File (.dll;.so)");
GVFS-RemoteVolumeMonitor-WARNING **: cannot connect to the session bus: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
please help me.
-
You probably have an old version of dbus on your system. Also, your format string is wrong, please see "the documentation":http://qt-project.org/doc/qt-5.0/qtwidgets/qfiledialog.html#getOpenFileName.
And lastly, please wrap any code you post on this forum in '@' tags.
1/2