I am using PyQt4’s QTextBroswer to display a html link.
Whenever users click on the link, a browser will be used to open the internet page.
My question is, is there a way to set so that our own prefered browser is used to open the url page instead of the preset one?
Thanks in advance.
QTextBrowserprovides an actual browser. If you want to open a document in the user’s desktop environment-specified browser, then you’d use QDesktopServices::openUrl.You can use QProcess to start random programs: