English Български Русский 简体中文

How to Launch Web Browser

The class QDesktopServices [doc.qt.nokia.com] provides methods for accessing common desktop services such as opening a URL in the default web browser.

Please do not forget to include the following header files:

  1. #include <QDesktopServices>
  2. #include <QUrl>

  1. QDesktopServices::openUrl(QUrl("http://developer.qt.nokia.com"));

References

How to launch other applications in Qt [wiki.forum.nokia.com]

Categories: