Qt wiki will be updated on October 12th 2023 starting at 11:30 AM (EEST) and the maintenance will last around 2-3 hours. During the maintenance the site will be unavailable.

How to Launch Web Browser

From Qt Wiki
Revision as of 09:28, 24 February 2015 by Maintenance script (talk | contribs)
Jump to navigation Jump to search


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

How to Launch Web Browser

The class "QDesktopServices":http://doc.qt.io/qt-5.0/qtgui/qdesktopservices.html 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:

<br />#include &lt;QDesktopServices&amp;gt;<br />#include &lt;QUrl&amp;gt;<br />
<br />QDesktopServices::openUrl(QUrl(&quot;https://qt.io/&amp;quot;));<br />

References