Solved Open File like double clicking it
-
In Windows i can open any File by double clicking it. It will be opened with the Favourit Programm, like images or Videos. Now i have a Listbox with Items, like Images. And i want to trigger an Event that open me the Item with a double click. The Items are Files on my PC. Anyone know how i can solve this? Maybe with QProcess?
-
-
Here is a static method which can deal with it.
QDesktopService::openUrl(const QUrl &url);
The url is location of your file.
-
nice thx