Hi

Exactly My Problem is that
I am having a treeStructure of Files and Folders and I had represented files and folders with different different images.

Foreg.
Files are represented by Fileunchecked.png
Folders are represented by Folderunchecked.png
now when i pressed any File or Folder it can be replaced by another image like
Fileunchecked.png is replaced by Filechecked.png
and
Folderunchecked.png is replaced by Folderchecked.png
For this I used the concept of Connections using Signals and Slots

connect(listView,SIGNAL(pressed(QListViewItem*)),t his,SLOT(reverse_images(QListViewItem*)));

By using this the images are also changed.


But now I want when I again Click on any File or Folder (that are checked) can be replaced by File or Folder (that are unchecked)

That is
Filechecked.png is replaced by Fileunchecked.png
and
Folderchecked.png is replaced by Folderunchecked.png