同样要注意new和delete的问题;
is not a member of QApplication:这个错误可能是找不到信号或槽函数;
想用到信号槽,必须至少继承QObject类,并在类第一行写上Q_OBJECT,moc将处理每个Q_OBJECT,但只在头文件有效,所以最好写在头文件里;
posted on 2017-12-07 10:50 willaty 阅读(146) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 willaty Powered by .NET 9.0 on Kubernetes