カンテラの光の下で

dNaga392's memorandom

【Qt】ローカルファイルの実行

ローカルファイルの実行は QDesktopServices の openUriメソッドを使い実現できます。

//#include <QDesktopServices>  
//#include <QUrl>  
//#include <QString>  

// QString filepath;  
bool result = QDesktopServices::openUrl(QUrl::fromLocalFile(filepath));

c++ - Howto open html page in default browser, when html code is stored in QString - Stack Overflow