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

在信号连接的时候写成了一下格式:
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.   

你可能感兴趣的:(C++,English,blog,QT)