Results 1 to 2 of 2

Thread: link to a pdf for opening it wit adobe reader

  1. #1
    Join Date
    Nov 2010
    Location
    Budapest, Hungary
    Posts
    125
    Thanks
    17
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default link to a pdf for opening it wit adobe reader

    Hi,

    I would like to make a link (or a menu item or anything that would work ) to a pdf document on a specific location of the file system. I would like to use the Acrobat Reader. I've found some suggessions where I would need to scepify the actual reader's location but I wouldn't like to predefine that as it may differ with time or computer. What can I use for it? This may be placed on a label or reached via a menu item, any simple solutions are welcome.

    this is basically a Windows application but I'm not sure it will be its future. So the best would be to call somehow "the system's defoult pdf reader".

    Szilvi
    Szilvi

  2. #2
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: link to a pdf for opening it wit adobe reader

    QDesktopServices :: openUrl( QUrl::fromLocalFile("path/to/file.pdf") )

  3. The following user says thank you to stampede for this useful post:

    szisziszilvi (29th August 2011)

Similar Threads

  1. Replies: 11
    Last Post: 5th May 2011, 14:05
  2. QT + VS2008 + Adobe API
    By angelo in forum Qt Programming
    Replies: 1
    Last Post: 27th April 2011, 14:22
  3. Problem using QT in a plugin for Adobe After Effects (mac)
    By elisagroup in forum Qt Programming
    Replies: 1
    Last Post: 13th October 2010, 17:12
  4. Runing inline evice/adobe reader
    By deimus in forum Qt Programming
    Replies: 2
    Last Post: 30th June 2010, 07:19
  5. Call extern app Adobe Acrobat to open *.pdf
    By Lodhart in forum Qt Programming
    Replies: 16
    Last Post: 28th April 2009, 05:36

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.