[Qt-interest] QModelIndex - boost::shared_pointers

Stephen Kelly steveire at gmail.com
Thu Sep 10 12:33:49 CEST 2009


Andreas Pakulat wrote:

> On 09.09.09 19:02:29, Willy P wrote:
>> Any advice for ways of using boost::shared_pointers w/ the Qt Model
>> View Framework?  It looks like they use a lot of raw pointers for
>> identification.  Is there no way around this?  Thanks for your
>> advice...
> 
> As its part of the API, no. A QModelIndex' internal pointer will always
> be void*.
> 
> Andreas
> 


And if you want to share th internalId of an index you're probably doing 
something wrong.

Steve.



More information about the Qt-interest-old mailing list