Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Hello, i'm a newbie in qt programming. So I have tried to make an audio media player.
The name of the music is passed thanks to the parameter of the project.
So i associate .mp3 with my .exe.
But there is a problem, it works only if there are the .dll on the same folder of the music that i want to hear.
If the music is out of this folder the dependencies fail.
How can i resolve this problem?
Thanks for your futur responses.
ps: sorry for my english i'm french.
Hi and welcome to devnet,
Did you properly deploy your application like described in this "fine wiki entry":http://qt-project.org/wiki/Deploy_an_Application_on_Windows ?
Hum, for the deployement yes I have do what is written.
I have got one folder MyApplication which got MyApp.exe and all the necessaries .dll.
I have also associated my music with MyApp.exe.
When i run a music it works just if the music is in the MyApplication folder.
I wonder if it is a problem of PATH or not.
How do you retrieve the path to your music files ?
I retrieve the path of the music file thanks to : QCoreApplication::arguments().at(1)
Did you check what path you get in that argument ?