Results 1 to 3 of 3

Thread: Launching a PDF in platform independant way

  1. #1
    Join Date
    Aug 2008
    Posts
    132
    Thanks
    23
    Thanked 3 Times in 3 Posts

    Default Launching a PDF in platform independant way

    Hi

    I'm trying to find out what is the best way to open a PDF from within a Qt application. I looked at QProcess but I'm not convinced that this is the best solution. Does a solution exist where a class looks at the program associated with a file extension such as a pdf in a platform independant way and launches the PDF with that program?

    I suspect that such a class will also be able to open a path in the correct way, for example in windows using windows explorer and in a different operating system using the appropriate application.

    If such a class exist, please point me in the right direction.

    Thanks
    Jaco

  2. #2
    Join Date
    Aug 2008
    Posts
    132
    Thanks
    23
    Thanked 3 Times in 3 Posts

    Default Re: Launching a PDF in platform independant way

    Found something on the web about this:
    http://lists.trolltech.com/qt-intere...ad01357-0.html

    Not able to test it yet though.

    Cheers
    Jaco

  3. #3
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Launching a PDF in platform independant way

    J-P Nurmi

  4. The following user says thank you to jpn for this useful post:

    millsks (15th March 2009)

Similar Threads

  1. Crash handler on Win32
    By niko in forum Qt Programming
    Replies: 3
    Last Post: 12th November 2007, 19:41

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.