直接进入主题,据我所知,方法有3种:
1、自定义signal、slot,这个就不多说了,标准方法
2、使用QmetaMethod::invoke,这是可以直接在子线程调用的,看起来比较另类
3、从5.4开始,有了另一种新方法:
https://labisart.com/blog/index.php/Home/Index/article/aid/225
直接进入主题,据我所知,方法有3种:
1、自定义signal、slot,这个就不多说了,标准方法
2、使用QmetaMethod::invoke,这是可以直接在子线程调用的,看起来比较另类
3、从5.4开始,有了另一种新方法:
https://labisart.com/blog/index.php/Home/Index/article/aid/225