Results 1 to 6 of 6

Thread: How to learn OS to open file with a proper program

  1. #1
    Join Date
    May 2007
    Posts
    315
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default How to learn OS to open file with a proper program

    Hi. I've got a question.I create a program which elements are .exe file and some other (not exe) needed to launch the program. Than, user can save what he has done to a file with .di suffix. When a user downloads this program, and want to open he's .di file, he's asked which program does he want to use to open it. So the question it, how to do that system already knows that this type of files is opened by my program?
    Regards

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to learn OS to open file with a proper program

    You will have to use platform-specific mechanisms for this. On windows it's a matter of adding a key to the registry.

  3. #3
    Join Date
    May 2007
    Posts
    315
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to learn OS to open file with a proper program

    Quote Originally Posted by jacek View Post
    You will have to use platform-specific mechanisms for this. On windows it's a matter of adding a key to the registry.
    Yep, but how to do that this is set automatically to a person which installs this program

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to learn OS to open file with a proper program

    It depends how you install the application. For example NSIS can do this without any problems.

  5. #5
    Join Date
    May 2007
    Posts
    315
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to learn OS to open file with a proper program

    Quote Originally Posted by jacek View Post
    It depends how you install the application. For example NSIS can do this without any problems.
    Really? NSIS is one or installator I was looknig at in past days, but I didn't know this feature

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to learn OS to open file with a proper program


Similar Threads

  1. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 16:21
  2. How to open a Pdf file from Qt
    By vishal.chauhan in forum Newbie
    Replies: 2
    Last Post: 28th March 2007, 09:24
  3. QT MySQL
    By sabeeshcs in forum Newbie
    Replies: 6
    Last Post: 12th January 2007, 05:19
  4. Replies: 2
    Last Post: 13th September 2006, 10:11

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.