[Qt-interest] About QScopedPointer

Mihail Naydenov mlists at ymail.com
Fri May 13 09:47:56 CEST 2011


I am in a bit of a struggle how to pass a pointer to a QScopedPointer-managed 
pointer.
It seems impossible:

QScopedPointer<Data> d;

fund(void** data);  //< want to pass d into this

I guess QScopedPointer lacks a T*& data() member function. Is this going to be 
addressed. Or am I missing something.

Thanks
MihaiNaydenov

P.S. I know It can be worked-around with one extra regular pointer, but that is 
not the point.




More information about the Qt-interest-old mailing list