Results 1 to 17 of 17

Thread: Call extern app Adobe Acrobat to open *.pdf

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #13
    Join Date
    Jan 2009
    Location
    Germany
    Posts
    131
    Thanks
    11
    Thanked 16 Times in 16 Posts
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Call extern app Adobe Acrobat to open *.pdf

    We've sometimes problems (only under Windows) if the string points to a local file and the implicit cast is used. Using QUrl::fromLocalFile() works always. In the above code change line 10:

    Qt Code:
    1. if (!QDesktopServices::openUrl(file))
    To copy to clipboard, switch view to plain text mode 

    to
    Qt Code:
    1. if (!QDesktopServices::openUrl(QUrl::fromLocalFile(file)))
    To copy to clipboard, switch view to plain text mode 

  2. The following user says thank you to nightghost for this useful post:

    sophister (27th April 2009)

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
  •  
Qt is a trademark of The Qt Company.