qt QDesktopServices打开图像失败

void SqlOperation::ImageView2(QString path)
{
QDesktopServices::openUrl(QUrl(path));
}

打开图像失败:

路径不要D:\\aa.jpg, 改为 D:/aa.jpg

posted @ 2025-04-02 13:29  txwtech  阅读(20)  评论(0)    收藏  举报