I'm developing Qt 4.7.4 in Linux, trying to access a file in other linux samba server.
The code on windows works like a charm, but still not in Linux,
please let me know who can I work it out,
QString cAudio = "smb://192.168.0.2/audioshare/audiofile.wav";
QMessageBox::about(NULL, "cAudioFile", "file exists"+cAudio);
QMessageBox::about(NULL, "cAudioFile", "file missing"+cAudio);
The file is easily opened in VLC player, and the samba folder/file does not need any user/password.
@QString cAudio = "//192.168.0.2/audioshare/audiofile.wav";@
did not work either.
But it works for local files like
@QString cAudio = "/home/user1/audio/audiofile.wav";@
BTW, I have set current directory to
in the main program.
Thanks in advance,