[Qt-jambi-interest] execute a pdf file

Alessandro Portale alessandro.portale at trolltech.com
Wed Feb 4 12:48:31 CET 2009


Hi,

Have a look at QDesktopServices.openUrl():
http://doc.trolltech.com/qtjambi-4.4/html/com/trolltech/qt/gui/QDesktopServices.html#openUrl(com.trolltech.qt.core.QUrl)

If you pass it a Url which references a local .pdf file, the standard 
Pdf-Viewer is launched.

Alessandro

Dawid Sip wrote:
> Hi,
> Im having trubble launching a pdf file with the Users Manual. I want to 
> be able to click the menu bar entry and this should cause the file to be 
> executed. In Win. this would start the Acrobat Reader with the file 
> opened. The class QFile does not seem to have any exec() rutine. How do 
> I do it then?
> D.
> _______________________________________________
> Qt-jambi-interest mailing list
> Qt-jambi-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest




More information about the Qt-jambi-interest mailing list