使用命令:QDesktopServices :: openUrl(QUrl(QLatin1String("网址或者文件的绝对地址”);
需要包含的头文件有:
#include<QDesktopServices>
#include<QUrl>
使用命令:QDesktopServices :: openUrl(QUrl(QLatin1String("网址或者文件的绝对地址”);
需要包含的头文件有:
#include<QDesktopServices>
#include<QUrl>