parameters: (url)
docstring: url: QUrl object
docstring_summary: url: QUrl object
docstring_tokens: url : QUrl object
function: def openUrl(url):
      """url: QUrl object"""
      if url.fileName().endswith((".html", ".htm")):
          settings = QSettings()
          browserPath = settings.value("/Qgis2threejs/browser", "", type=str)
          if browserPath:
              if QProcess.startDetached(browserPath, [url.toString()]):
                  return
              else:
                  logMessage("Incorrect web browser path. Open URL using default web browser.", True)
  
      QDesktopServices.openUrl(url)
function_tokens: def openUrl ( url ) : if url . fileName ( ) . endswith ( ( ".html" , ".htm" ) ) : settings = QSettings ( ) browserPath = settings . value ( "/Qgis2threejs/browser" , "" , type = str ) if browserPath : if QProcess . startDetached ( browserPath , [ url . toString ( ) ] ) : return else : logMessage ( "Incorrect web browser path. Open URL using default web browser." , True ) QDesktopServices . openUrl ( url )