[qt]qt打开本地pdf

#include "qurl.h"
#include "qdesktopservices.h"
#include "qfile.h"

{
    QString URL = u8"./12中文31/XXX手册.pdf";
    QDesktopServices::openUrl(QUrl::fromLocalFile(URL));
}

 

posted @ 2024-03-22 11:34  南水之源  阅读(105)  评论(0编辑  收藏  举报