How to Launch Web Browser: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
'''English''' [[How to Launch Web Browser Bulgarian|Български]] [[How to Launch Web Browser Russian|Русский]] [[How to Launch Web Browser SimplifiedChinese|简体中文]]
[[Category:snippets]]<br />[[Category:HowTo]]


=How to Launch Web Browser=
'''English''' | [[How_to_Launch_Web_Browser_German|Deutsch]] | [[How_to_Launch_Web_Browser_Bulgarian|Български]] | [[How_to_Launch_Web_Browser_Russian|Русский]] | [[How_to_Launch_Web_Browser_SimplifiedChinese|简体中文]]


The class [http://doc.qt.io/qt-5.0/qtgui/qdesktopservices.html QDesktopServices] ''[qt.io]'' provides methods for accessing common desktop services such as opening a <span class="caps">URL</span> in the default web browser.
= How to Launch Web Browser =


Please do not forget to include the following header files:<br />
The class &quot;QDesktopServices&amp;quot;: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.


==References==
Please do not forget to include the following header files:<br /><code><br />#include &lt;QDesktopServices&amp;gt;<br />#include &lt;QUrl&amp;gt;<br /></code>


[http://wiki.forum.nokia.com/index.php/How_to_launch_other_applications_in_Qt How to launch other applications in Qt] ''[wiki.forum.nokia.com]''
<code><br />QDesktopServices::openUrl(QUrl(&quot;https://qt.io/&amp;quot;));<br /></code>


===Categories:===
== References ==
 
* [[:Category:HowTo|HowTo]]
* [[:Category:snippets|snippets]]

Revision as of 09:28, 24 February 2015


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

How to Launch Web Browser

The class "QDesktopServices&quot;: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