<html><head><style type='text/css'>p { margin: 0; }</style><style type='text/css'>body { font-family: 'Arial'; font-size: 10pt; color: #000000}</style></head><body>Hi<br><br>I am using QModelIndex constructed with an id. I am using the built-in method <br>id(my_object) to get an ID to construct a ModelIndex with.<br>If we have an index, internalId() returns the id used to create the index.<br>Is there a API way to get the ModelIndex from a view if we have the id used<br>to create the index? I do not see a method like this in the QModelIndex API.<br><br>Also, id(my_object) = ID. Is there a way to get my_object if I only have the ID?<br><br>Thanks <br>Dirk<br><br>-- <br>Dirk Wagener <dwagen@stonethree.com><br>(MSc. Electronic Engineering, Stell.)<br><br>Project Engineer<br>Stone Three Signal Processing (Pty.) Ltd.<br>http://www.stonethree.com<br>+27 21 851 3123 (phone)<br>+27 21 851 3127 (fax) <br><br>Discovery consists of seeing what everybody <br>has seen and thinking what nobody has thought.<br></body></html>