1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#ifndef LIBB_H #define LIBB_H #include <QObject> #include "libA.h" #include "libb_export.h" class LIBB_EXPORT LibB : public QObject { Q_OBJECT public: explicit LibB(QObject* parent = 0); int foo(); private: LibA a; }; #endif