Results 1 to 5 of 5

Thread: Setting OS Specified Icon on the File?

  1. #1
    Join Date
    Dec 2006
    Posts
    211
    Thanks
    27
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Setting OS Specified Icon on the File?

    Hi All,

    I am working on Mac OS and Qt 4.3.4.
    I am creating a treeWidget from the Hard Disk and it shows me the file and folder of the selected path.

    I want that the treeWidget will show me the actual Icon whcih is used on the mac(that for say mp3 file it should show thw mp3 icon used on mac etc..)

    If any body knows then plz help me.

    Thanks.

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

    Default Re: Setting OS Specified Icon on the File?

    I'm not sure if this is the case on Mac but doesn't QDirModel show them out of the box?
    J-P Nurmi

  3. #3
    Join Date
    Dec 2006
    Posts
    211
    Thanks
    27
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Setting OS Specified Icon on the File?

    Actually I does not using QDirModel Approach (Although I am not sure it will show the Icon).

    and the fact is that I can not change my approach either.

    Is there is some setting that is to be used to show Icpon.

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

    Default Re: Setting OS Specified Icon on the File?

    J-P Nurmi

  5. #5
    Join Date
    Dec 2006
    Posts
    211
    Thanks
    27
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Setting OS Specified Icon on the File?

    Actually these required the path of the file or folder whose Icon is to be used.
    But I want to do like this that suppose If I add some files say

    image.jpeg , Image1.gif, Image2.png ,Image4.bmp then it should automatically show the Icon of the perticular file.

    Is it possible to do?

Similar Threads

  1. Setting window icon on derived QWidget
    By steg90 in forum Qt Programming
    Replies: 5
    Last Post: 16th July 2007, 11:21
  2. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 15:21
  3. Set QApplication icon without using the rc/qrc file ?
    By Nyphel in forum Qt Programming
    Replies: 8
    Last Post: 23rd March 2007, 15:06
  4. set Icon to .app file
    By vishal.chauhan in forum Qt Programming
    Replies: 2
    Last Post: 10th January 2007, 21:13
  5. Associating icon with a file type
    By munna in forum Qt Programming
    Replies: 3
    Last Post: 6th June 2006, 16:57

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.