class A{ //...};
class B : public QObject{ Q_OBJECT B(QObject *parent=0); //...};class A{ //... B val; //...};
C++ (Qt)class B : public QObject{ Q_OBJECT B(QObject *parent=0); //...}; QVector<B *> list;