摘要: int main() { string str1, str2; auto it1 = str1.begin(), it2 = str2.begin(); it1 == it2; return 0; } 阅读全文
posted @ 2019-11-03 19:22 机智的小小帅 阅读(107) 评论(0) 推荐(0)
摘要: 在Qt中,当派生类需要用到信号与槽机制时,有两个要求。 1、该类派生自QObject类。 2、类中有Q_OBJECT宏。 本次报错的原因就是因为没有在类中添加Q_OBJECT宏。 而我的出错原因更傻逼,清清楚楚知道需要添加Q_OBJECT宏,但是却手残写成了这个。 阅读全文
posted @ 2019-11-03 16:57 机智的小小帅 阅读(2110) 评论(0) 推荐(0)