File indexing completed on 2024-05-05 05:41:37
0001 #include <QtCore/QObject> 0002 0003 class Obj : public QObject 0004 { 0005 Q_OBJECT 0006 public: 0007 template<class T> 0008 void createSomeObject(); 0009 Q_SIGNALS: 0010 }; 0011 0012 template<class T> 0013 void Obj::createSomeObject() 0014 { 0015 } 0016 0017 void test() { 0018 auto obj = new Obj(); 0019 obj->createSomeObject<QObject>(); 0020 }