2020年8月5日10:43:11 notes(QT singal and slot)

55 篇文章 0 订阅
16 篇文章 1 订阅
在信号连接的时候写成了一下格式:
connect(ui->Button_contrarotate_270, SIGNAL(clicked()), this, SLOT(OnRoateContrarotate_270));
问题:
QObject::connect: Parentheses expected, slot MainWindow::OnRoateContrarotate_270 in mainwindow.cpp:114
QObject::connect:  (sender name:   'Button_contrarotate_270')
QObject::connect:  (receiver name: 'MainWindow')

修改:

    connect(ui->Button_contrarotate_270, SIGNAL(clicked()), this, SLOT(OnRoateContrarotate_270()));

  I hope I can help you,If you have any questions, please  comment on this blog or send me a private message. I will reply in my free time.   

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值