[Interest] QExplicitlySharedDataPointer Example

Konstantin Tokarev annulen at yandex.ru
Thu Jul 18 20:00:34 CEST 2013



18.07.2013, 21:23, "Michael Jackson" <imikejackson at gmail.com>:
> Ok, I got a little farther but now when I try to use my class in a program I get some compile errors.
>
> ----------------QtFilterTest.h
> #include <QtCore/QString>
> #include <QtCore/QExplicitlySharedDataPointer>
> class SegmentGrainsData;
>
> class SegmentGrains
> {
>   public:
>     SegmentGrains();
>     SegmentGrains(const SegmentGrains &other);
>  protected:

// full definition of SegmentGrainsData MUST be visible from here!

>     QExplicitlySharedDataPointer<SegmentGrainsData> d_ptr;
> };

-- 
Regards,
Konstantin



More information about the Interest mailing list