Results 1 to 4 of 4

Thread: Associating icon with a file type

  1. #1
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Associating icon with a file type

    Hi,

    I have set icon for the exe and it works.

    But...

    Is there a Qt way by which I can associate an icon or an image with a particular file type ?

    Thanks a lot

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Associating icon with a file type

    Could you explain? Did you search the forum? There were some questions on associating file types with applications, maybe it's what you want... If not, then maybe you're after QFileIconProvider?

  3. #3
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Associating icon with a file type

    Could you explain?
    Sure. For example all the .doc files will have an image associated with them (which is more or less similar to the exe file) when looked in the file explorer. Similarly I want all the files with a particular extension (which my application files will have) to have shown an icon.

    Did you search the forum?
    Yes. This thread talks about how to do it on linux flavors but not on Windows or Mac.

    Can someone please tell how to do it on Windows?

    Thanks a lot.

  4. #4
    Join Date
    Mar 2006
    Posts
    172
    Thanks
    30
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Associating icon with a file type

    Quote Originally Posted by munna

    Can someone please tell how to do it on Windows?

    Thanks a lot.
    The technique is similar in nature to screwing around with the registry....one of your previous threads of opening a .swf file may help...you need to look out for how the registry works...try lookin for this

    Nupul

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. Associating file extensions
    By fullmetalcoder in forum General Programming
    Replies: 9
    Last Post: 10th May 2006, 14:12
  3. Opening swf file in the default browser
    By munna in forum Qt Programming
    Replies: 16
    Last Post: 5th May 2006, 10:33
  4. How to read encoding type in XML file
    By danbr in forum Qt Programming
    Replies: 2
    Last Post: 30th April 2006, 09:17
  5. use libs under qt4
    By raphaelf in forum Qt Programming
    Replies: 6
    Last Post: 27th February 2006, 18:59

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.