How to open a txt file in the foreground above/infront of all other opened dir using qt api?
-
Hi All,
I want to launch/open a txt file when i am exiting from my qt app. To do that am using the below qt api
QDesktopServices::openUrl(QUrl(QLatin1String("file:///C:/myapp/releasenote.txt"), QUrl::TolerantMode));
But the issue is if some other folder is opened the file txt file is opened exactly behind of the opened dir or file.
How to fix this issue?
Is there any other api or setting required which will make this visible in front of other opened dirs.Regards,
Pradeep -
Maybe "startDetached":http://qt-project.org/doc/qt-4.8/qprocess.html#startDetached could help.
But I don't know how to get name of app which attached to .txt extension.