Hi all

I am working on Qt3.1(Red HAt Linux).I m having a Tree Structure of various Files and Folders.Files and Folders both are represented by different different images.
Now what I want is That When I Click on a Particular File or Folder Having different images is being replaced by another images.

Foreg.

Files->representedby->image1
Folders->representedby->image2

Now when I select a Particular File
i.e When I Click on FileItem then image1 Can be Replaced By any another image say image3.

same for folders

Now when I select a Particular Folder
i.e When I Click on Folder then image2 Can be Replaced By any another image say image4

Please do reply with example.

Cheers
Merry