Nyphel
23rd June 2007, 22:35
Hi,
I've wrote a small application that search for movies in my computer, list them, order the list and display the list to the user (using a a QTreeWidget). When the user double clic a movie name, my application use the QDesktopServices in order to launch the movie.
Here is the sample code used to launch the movie :
QString path_to_a_movie = "N:/The movies/666 - La malédiction";
QUrl my_url;
my_url = QUrl::fromLocalFile(path_to_a_movie);
QDesktopServices::openUrl(my_url);
If the [path_to_a_movie] contains accents, like in the example, the movie isn't launched.
I don't understand how to resolve this problem... Has someone an idea ?
I've wrote a small application that search for movies in my computer, list them, order the list and display the list to the user (using a a QTreeWidget). When the user double clic a movie name, my application use the QDesktopServices in order to launch the movie.
Here is the sample code used to launch the movie :
QString path_to_a_movie = "N:/The movies/666 - La malédiction";
QUrl my_url;
my_url = QUrl::fromLocalFile(path_to_a_movie);
QDesktopServices::openUrl(my_url);
If the [path_to_a_movie] contains accents, like in the example, the movie isn't launched.
I don't understand how to resolve this problem... Has someone an idea ?