Qt编程时自定义类对象继承出错,提示no matching……………………………….解决方案

  1. 错误:在类的构造函数处出错(指向parent),提示no matching……………………………….

   分析:此问题的出现是由于类的继承问题;ConnectWithPC类需要继承QObject类才能正常使用(注意不能是继承QWdiget类);

解决:可如下设置:

搞定!

 

猜你喜欢

转载自blog.csdn.net/qq_41969790/article/details/85197008