首页| 论坛| 消息

标题:【提问】warning: Object::connect: Use the SLOT or SIGNAL macro to connect
作者:80437
日期:2005-09-29 14:01
内容:

调用QMenu的如下方法:
QAction * QMenu::addAction ( const QString & text, const QObject * receiver, const char * member, const QKeySequence & shortcut = 0 )
debug时候出现这样的信息
warning: Object::connect: Use the SLOT or SIGNAL macro to connect
是什么原因?
表现结果是执行菜单的点击操作,没有出发预期要执行的函数,ie. receiver->member


#1 Re:【提问】warning: Object::connect: Use the SLOT [XChinux 09-29 14:08]
信息不完整,源代码和配置呢?还有出错信息
#2 Re:【提问】warning: Object::connect: Use the SLOT [running 10-11 17:34]
是不是忘了加:
Q_OBJECT

回复 发表
主题 版块