[quote author="DrMaboule" date="1279318875"]I fact you could declare more than one variable using this code:
QObject *pParent = NULL, *pParent2 = NULL; // Two pointer
But is différent from
QObject *pParent = NULL, pParent; // One pointer and a none pointer object.
This is something I don't do anyway. I would call this a code smell on its own.
[/quote]
[quote]
QObject pParent : The variable is a pointer on a objet of type QObject. QObject is not a class but a pointer on a class. The variable is a pointer, so * should be next the variable.
[/quote]
You are right, QObject* is not a class, but a pointer to a class. But it is atype.
[quote]
Don't you agreed?
[/quote]
Obviously no, but it is a matter of taste. I'll agree to Tobias Hunger that you should be consistent
to the code at hand and for my code it's T* name
lyuts thank you for the info.