On Tuesday, September 18, 2012 16:58:00 Alex Strickland wrote:
> This is really a general C++ question, but I have looked long and hard
> and not worked it out. In the code below how should I initialise v.v
> using the QScopedPointer?
Did you even try your example with a raw pointer instead of a
Yes.
On , Alex Strickland wrote:
On 2012/09/18 05:02 PM, Kandeler Christian wrote:
> You are looking for QScopedPointer::reset().
Thank you, that was quick. Like this?
yvreset(new a);
--
Regards
Alex
___
Interest mailin
On 2012/09/18 05:02 PM, Kandeler Christian wrote:
> You are looking for QScopedPointer::reset().
Thank you, that was quick. Like this?
y.v.reset(new a);
--
Regards
Alex
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.or
Alex Strickland [s...@mweb.co.za]
Sent: 18 September 2012 16:58
To: interest@qt-project.org
Subject: [Interest] QScopedPointer with
Hi
This is really a general C++ question, but I have looked long and hard
and not worked it out. In the code below how should I initialise v.v
using the
Hi
This is really a general C++ question, but I have looked long and hard
and not worked it out. In the code below how should I initialise v.v
using the QScopedPointer?
#include
class abc
{
};
class a : public abc
{
};
class x
{
public:
QScopedPointer v;
};
int main()
{
x y;