Results 1 to 4 of 4

Thread: File type associations under Windows or Linux

  1. #1
    Join Date
    Sep 2010
    Posts
    45
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default File type associations under Windows or Linux

    How we capture the application associated with a file type under Windws or Linux.
    For example the pdf files are normally associated by the system with adobe reader ...

  2. #2
    Join Date
    Apr 2010
    Posts
    769
    Thanks
    1
    Thanked 94 Times in 86 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: File type associations under Windows or Linux

    It depends. Under Windows and Mac, file associations are handled by the OS; under Linux, they're typically handled by the desktop manager you're using. Actually, this is also somewhat true on the two former systems, but the distinction between OS and Desktop is blurred so they appear to be the same thing.

    Here's an article about it.

  3. #3
    Join Date
    Oct 2009
    Location
    Mexico
    Posts
    81
    Thanks
    6
    Thanked 10 Times in 10 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: File type associations under Windows or Linux

    i think the question is a little ambiguos.

    if you need open a file using a external app (the default app) you can use the static function QDesktopServices::openUrl ( ), but if you need know the default app name who the SO use for open a PDF file maybe you need review the source code of the openUrl() function.

    sorry my poor english
    Last edited by ecanela; 6th November 2010 at 18:51. Reason: spelling corrections

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

    bred (7th November 2010)

  5. #4
    Join Date
    Sep 2010
    Posts
    45
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: File type associations under Windows or Linux

    Quote Originally Posted by ecanela View Post
    i think the question is a little ambiguos.

    if you need open a file using a external app (the default app) you can use the static function QDesktopServices::openUrl ( ), but if you need know the default app name who the SO use for open a PDF file maybe you need review the source code of the openUrl() function.

    sorry my poor english
    It likes to be the better solution.

Similar Threads

  1. Best way to create Windows Explorer type UI
    By scarleton in forum Newbie
    Replies: 8
    Last Post: 22nd August 2010, 19:30
  2. How to get file type Icon ?
    By wirasto in forum Qt Programming
    Replies: 4
    Last Post: 12th July 2010, 12:18
  3. How to know file type
    By nrabara in forum Newbie
    Replies: 2
    Last Post: 16th December 2009, 13:30
  4. Replies: 5
    Last Post: 5th August 2009, 17:32
  5. Deployment Procedure On Windows On Linux and Windows
    By Harshith J.V. in forum Installation and Deployment
    Replies: 4
    Last Post: 9th July 2009, 11:27

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.