<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><br>Let's say you create a QLabel and make it an icon, by associating an image file to it,..<br>like..<br><br>      thisPixmap  = QtGui.QPixmap('server:/images/airplane.jpg') )<br><br>      thisIcon = QtGui.QLabel(self)<br>      thisIcon.setPixmap(thisPixmap)<br><br>Now let's say that later, in another function...you need to query "thisIcon"<br>to obtain the name of the image file associated with it ("airplane.png").<br>How can one do this?  I can't find any function in either the QLabel nor<br>the QPixmap class that has a way to return the underlying image filename.<br><br>QLabel does have "pixmap()"...as in:<br><br>      thisIcon.pixmap()<br><br>but that doesn't return the image filename,...it returns the pixmap's address.<br><br>Using QIcon might be
 an option,...but I need to use QLabel as it has "move"<br>functions,...and QIcon doesn't appear to have that...<br><br>Any info or suggestions are greatly appreciated,<br>Cheers,<br>-Jim<br><br><br><br></td></tr></table>