在连接信号与槽时,报错解决error: no matching member for call to 'connect'
error: no matching member for call to 'connect'
这种情况下使用使用旧版语法
connect(sender, SIGNAL(func()), receiver, SLOT(func1()))