In Qt5 QMetaMethod::signature() does not exist anymore. Now it's called methodSignature() and returns a QByteArray.