Check if "method.access() == QMetaMethod::Public" in methodList