main.cpp: In function 'int main(int, char**)': main.cpp:13:84: error: no matching function for call to 'QObject::connect(QPointer&, void (QObject::*)(const QString&, QObject::QPrivateSignal), QPointer&, void (QObject::*)())' QObject::connect(test, &QObject::objectNameChanged, test, &QObject::deleteLater); ^ main.cpp:13:84: note: candidates are: In file included from /local/qt5/include/QtCore/qcoreapplication.h:40:0, from /local/qt5/include/QtCore/QCoreApplication:1, from main.cpp:1: /local/qt5/include/QtCore/qobject.h:196:36: note: static QMetaObject::Connection QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType) static QMetaObject::Connection connect(const QObject *sender, const char *signal, ^ /local/qt5/include/QtCore/qobject.h:196:36: note: no known conversion for argument 2 from 'void (QObject::*)(const QString&, QObject::QPrivateSignal)' to 'const char*' /local/qt5/include/QtCore/qobject.h:199:36: note: static QMetaObject::Connection QObject::connect(const QObject*, const QMetaMethod&, const QObject*, const QMetaMethod&, Qt::ConnectionType) static QMetaObject::Connection connect(const QObject *sender, const QMetaMethod &signal, ^ /local/qt5/include/QtCore/qobject.h:199:36: note: no known conversion for argument 2 from 'void (QObject::*)(const QString&, QObject::QPrivateSignal)' to 'const QMetaMethod&' /local/qt5/include/QtCore/qobject.h:475:32: note: QMetaObject::Connection QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const inline QMetaObject::Connection QObject::connect(const QObject *asender, const char *asignal, ^ /local/qt5/include/QtCore/qobject.h:475:32: note: no known conversion for argument 2 from 'void (QObject::*)(const QString&, QObject::QPrivateSignal)' to 'const char*' /local/qt5/include/QtCore/qobject.h:213:43: note: template static QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer::Object*, Func1, const typename QtPrivate::FunctionPointer::Object*, Func2, Qt::ConnectionType) static inline QMetaObject::Connection connect(const typename QtPrivate::FunctionPointer::Object *sender, Func1 signal, ^ /local/qt5/include/QtCore/qobject.h:213:43: note: template argument deduction/substitution failed: main.cpp:13:84: note: mismatched types 'const typename QtPrivate::FunctionPointer::Object*' and 'QPointer' QObject::connect(test, &QObject::objectNameChanged, test, &QObject::deleteLater); ^ In file included from /local/qt5/include/QtCore/qcoreapplication.h:40:0, from /local/qt5/include/QtCore/QCoreApplication:1, from main.cpp:1: /local/qt5/include/QtCore/qobject.h:245:13: note: template static typename QtPrivate::QEnableIf<((int)(QtPrivate::FunctionPointer::ArgumentCount) >= 0), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer::Object*, Func1, Func2) connect(const typename QtPrivate::FunctionPointer::Object *sender, Func1 signal, Func2 slot) ^ /local/qt5/include/QtCore/qobject.h:245:13: note: template argument deduction/substitution failed: main.cpp:13:84: note: mismatched types 'const typename QtPrivate::FunctionPointer::Object*' and 'QPointer' QObject::connect(test, &QObject::objectNameChanged, test, &QObject::deleteLater); ^ In file included from /local/qt5/include/QtCore/qcoreapplication.h:40:0, from /local/qt5/include/QtCore/QCoreApplication:1, from main.cpp:1: /local/qt5/include/QtCore/qobject.h:254:13: note: template static typename QtPrivate::QEnableIf<(((int)(QtPrivate::FunctionPointer::ArgumentCount) >= 0) && (! QtPrivate::FunctionPointer::IsPointerToMemberFunction)), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer::Object*, Func1, const QObject*, Func2, Qt::ConnectionType) connect(const typename QtPrivate::FunctionPointer::Object *sender, Func1 signal, const QObject *context, Func2 slot, ^ /local/qt5/include/QtCore/qobject.h:254:13: note: template argument deduction/substitution failed: main.cpp:13:84: note: mismatched types 'const typename QtPrivate::FunctionPointer::Object*' and 'QPointer' QObject::connect(test, &QObject::objectNameChanged, test, &QObject::deleteLater); ^ In file included from /local/qt5/include/QtCore/qcoreapplication.h:40:0, from /local/qt5/include/QtCore/QCoreApplication:1, from main.cpp:1: /local/qt5/include/QtCore/qobject.h:285:13: note: template static typename QtPrivate::QEnableIf<(QtPrivate::FunctionPointer::ArgumentCount == (-1)), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer::Object*, Func1, Func2) connect(const typename QtPrivate::FunctionPointer::Object *sender, Func1 signal, Func2 slot) ^ /local/qt5/include/QtCore/qobject.h:285:13: note: template argument deduction/substitution failed: main.cpp:13:84: note: mismatched types 'const typename QtPrivate::FunctionPointer::Object*' and 'QPointer' QObject::connect(test, &QObject::objectNameChanged, test, &QObject::deleteLater); ^ In file included from /local/qt5/include/QtCore/qcoreapplication.h:40:0, from /local/qt5/include/QtCore/QCoreApplication:1, from main.cpp:1: /local/qt5/include/QtCore/qobject.h:293:13: note: template static typename QtPrivate::QEnableIf<(QtPrivate::FunctionPointer::ArgumentCount == (-1)), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer::Object*, Func1, const QObject*, Func2, Qt::ConnectionType) connect(const typename QtPrivate::FunctionPointer::Object *sender, Func1 signal, const QObject *context, Func2 slot, ^ /local/qt5/include/QtCore/qobject.h:293:13: note: template argument deduction/substitution failed: main.cpp:13:84: note: mismatched types 'const typename QtPrivate::FunctionPointer::Object*' and 'QPointer' QObject::connect(test, &QObject::objectNameChanged, test, &QObject::deleteLater); ^ make: *** [main.o] Error 1