Results 1 to 5 of 5

Thread: Open File /w Native Application

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2006
    Posts
    90
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    6
    Thanked 4 Times in 2 Posts

    Default Re: Open File /w Native Application

    I guess I don't understand how QDesktopServices accomplishes this.
    It appears to be a web oriented thing... all I want is to open a file, like test.txt, in notepad under windows or kate under linux... if that is their native viewer.

    or open a .pdf in what ever they have set to open .pdf's. I dont see how this is accomplished with the URL system QDesktopServices uses.

    Does anyone have an example of how to open a file /w the native "viewer" using QDesktopServices? Maybe I just don't see it.

    Thanks,
    Brandon P.

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

    Default Re: Open File /w Native Application

    Quote Originally Posted by bpetty View Post
    I guess I don't understand how QDesktopServices accomplishes this.
    It appears to be a web oriented thing... all I want is to open a file, like test.txt, in notepad under windows or kate under linux... if that is their native viewer.

    or open a .pdf in what ever they have set to open .pdf's. I dont see how this is accomplished with the URL system QDesktopServices uses.

    Does anyone have an example of how to open a file /w the native "viewer" using QDesktopServices? Maybe I just don't see it.
    Something pretty much the same was just recently discussed in this thread. See especially post #6 by wysota (there's an example for you).
    J-P Nurmi

Similar Threads

  1. Draging a non-existing file to the Windows Desktop
    By klaus1111 in forum Qt Programming
    Replies: 13
    Last Post: 20th September 2007, 12:47
  2. SQLite-DB in a qrc file
    By Lykurg in forum Qt Programming
    Replies: 5
    Last Post: 31st July 2006, 20:24
  3. Application build Mac PPC/Intel pro file?
    By patrik08 in forum Qt Programming
    Replies: 3
    Last Post: 28th June 2006, 14:27
  4. File permission QFile::WriteOther on Win Dos
    By patrik08 in forum Newbie
    Replies: 1
    Last Post: 13th June 2006, 15:16
  5. dialog box
    By Bahar in forum Qt Programming
    Replies: 3
    Last Post: 31st January 2006, 15:52

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.