参见这篇文章: https://stackoverflow.com/questions/16734542/unable-to-connect-signal-to-a-function-inside-main