fixes #6 (Error when calling void methods with qt5