PDA

View Full Version : how to open a pdf file using QDesktopServices



sujan.dasmahapatra
25th October 2011, 22:41
Is this correct.


Source code
1
QDesktopServices::openUrl(QUrl("file://C:\\Users\\DasmahapatraS\\Projects\\Bikraam_Databa se\\STUREC\\resumePDF.pdf",QUrl::TolerantMode

ChrisW67
25th October 2011, 22:57
Did it work when you tried it?

You should look at QUrl.isValid() and QUrl::fromLocalFile() and read my signature.