版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u013305101/article/details/80026110
QString strDoc = "D:/test.pdf";
QDesktopServices::openUrl(QUrl::fromLocalFile(strDoc));
QString strDoc = "D:/test.pdf";
QDesktopServices::openUrl(QUrl::fromLocalFile(strDoc));