PDA

View Full Version : Store the filename of QIcon



Nithya
28th August 2008, 16:47
I need to store the information about the icons, I have selected and displayed on the screen from a table (QTableWidget) of Icons.

Can I get the file name when I select an icon in the table cell?

or could u suggest any way ....


Thanking you in advance
Nithya

wysota
28th August 2008, 16:54
Store the icon path in a custom role of the item using QTableWidgetItem::setData().