i want to invoke browser with a specific url like youtube application. I've try using Navigator Invoke but, its show my application. i dont want to show my application just show browser when user click the application icon, can anybody help me please ..
Asked
Active
Viewed 61 times
1 Answers
0
Put this into your main() in main.cpp
QDesktopServices::openUrl(QUrl("http://example.com",QUrl::TolerantMode));
But you MUST remove (comment) the following lines:
new ApplicationUI(&app);
return Application::exec();
Otherwise application will open anyway

Bojan Kogoj
- 5,321
- 3
- 35
- 57
-
thanks for the answer, but why its only open the browser and not load the url ? – lichienmine Sep 13 '13 at 09:21