0

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 ..

lichienmine
  • 63
  • 1
  • 1
  • 6

1 Answers1

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