View Full Version : How to open url in default webbrowser ?

16th March 2011, 09:36

I am using QT4.3.4 on mac os, To open url I used

QLabel property setOpenExternalLinks ( bool open )

When i login as a root user then it opens the link in the default web browser, but when i login as a admin user then i wont opens it in the default web browser that is set.

Can u pls tell me , how can i open url in default web browser.


16th March 2011, 09:48
Try with QDesktopServices::openUrl.

I cannot try in MacOS but it should be platform independent

16th March 2011, 09:55
Thanks for the reply but

QLabel::OpenExternalLinks() Specifies whether QLabel should automatically open links using QDesktopServices::openUrl()