Qt调用默认浏览器 #include <qdesktopservices.h> #include <QUrl> QString Url = QString("https://127.0.0.1"); QDesktopServices::openUrl(QUrl(Url));