class Node{public: enum Type { RegExp, Expression, Term, Factor, Atom, Terminal }; Node(Type type, const QString &str = ""); ~Node(); Type type; QString str; Node *parent; QList<Node *> children;};Node::Node(Type type, const QString &str){ this->type = type; this->str = str; parent = 0;}
class SomeClass{public: SomeClass() {} QString text() const { return text; } void setText(const QString &str) { text = str; }private: QString text;};
qDebug() << &(MyClass::parent) << (unsigned int)MyClass::parent << &parent << (unsigned int)parent;
public: MyClass(QWidget * = 0);