anh5kor
13th October 2014, 07:41
Hello,
I have added Pdf file to my Resource folder.And trying to open a file
QDesktopServices::openUrl(QUrl(":/logo/CA185_EMU_v120.pdf", QUrl::TolerantMode));
Where logo is a Resource folder in my project folder directory.But still I am not able to open the pdf.
if I give the full path
QDesktopServices::openUrl(QUrl("file:///D:/EMU6Config/logo/CA185_EMU_v120.pdf", QUrl::TolerantMode));
I am able to open the file.But I want it should open from my resource file.
Please let know some solution.
I have added Pdf file to my Resource folder.And trying to open a file
QDesktopServices::openUrl(QUrl(":/logo/CA185_EMU_v120.pdf", QUrl::TolerantMode));
Where logo is a Resource folder in my project folder directory.But still I am not able to open the pdf.
if I give the full path
QDesktopServices::openUrl(QUrl("file:///D:/EMU6Config/logo/CA185_EMU_v120.pdf", QUrl::TolerantMode));
I am able to open the file.But I want it should open from my resource file.
Please let know some solution.