Your method has an incorrect signature, you are missing the last argument (QWidget pointer).