Results 1 to 6 of 6

Thread: open a document

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Mar 2008
    Location
    Morocco
    Posts
    47
    Thanks
    7
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: open a document

    thanks ..
    I tried the code:


    Qt Code:
    1. desk.openUrl(QUrl::fromLocalFile("test.pdf"));
    To copy to clipboard, switch view to plain text mode 


    but it doesnt open anythg..

    test.pdf is in the same directory as the .exe .. but it doesnt work??

    I dont know where is the error
    Last edited by jpn; 29th June 2008 at 19:30. Reason: missing [code] tags

Similar Threads

  1. Replies: 3
    Last Post: 7th October 2015, 19:43
  2. QTextBrowser: Cannot open
    By veda in forum Qt Programming
    Replies: 3
    Last Post: 27th December 2007, 12:05
  3. can Qt open MS word document?
    By coder1985 in forum Qt Programming
    Replies: 1
    Last Post: 25th December 2007, 14:34
  4. again Open Cascade + Qt 4.2.2 but detailed...
    By Shuchi Agrawal in forum Qt Programming
    Replies: 11
    Last Post: 1st February 2007, 07:03
  5. How to open a document with the default application?
    By SkripT in forum Qt Programming
    Replies: 7
    Last Post: 30th April 2006, 08:47

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.