[Qt-interest] tracking uniqueness

Oliver Heins heins at sopos.org
Fri Apr 23 15:14:53 CEST 2010


Hi Andreas,

thanks for your help.

Andreas Pakulat <apaku at gmx.de> writes:

> On 23.04.10 11:29:01, Oliver Heins wrote:
>
> The only way I can see to make this work is use a send in the id for Token
> in its constructor, i.e.:
>
> Token( int id_ ) : id(id_) {}
>
> and then have the member variable on Editor. 

I'll give that a try, but I think I'm in the need of a default
constructor.

> There's no way to make a counter for unique numbers per Editor
> instance without knowing the Editor instance.

Even though class Token is a nested in Editor?  There can't be an
instance of Token without a surrounding instance of Editor.

Is there a working way to keep track of the instances of member values?

Best regards,
 olli



More information about the Qt-interest-old mailing list