Showing posts with label qt for symbian. Show all posts
Showing posts with label qt for symbian. Show all posts

What is a QPointer?

What is a QPointer?
The QPointer is a template class. QPointer .
QPointer provides guarded pointers to QObject.

QPointer label = new QLabel;

QPointer is automatically set to 0 when the referenced object is destroyed(Normal C++ pointers, will become "dangling pointers" in such cases).
T must be a subclass of QObject.

Naming Conventions for symbian

Correct Symbian vaiable naming:
i-prefix for member variables
a-prefix for method parameters.
C-prefix for classes that should be constructed on the heap.
T-prefix for classes that can fit on the stack.
L-postfix for methods that can leave.