我正在使用qt 5.2.我的连接功能的来电:
QObject::connect(ui->mycombobox, SIGNAL(activated(0)), ui->mypushbutton, SLOT(toggle()));
// When I select first element from mycombobox, mypushbutton must be disabled
Run Code Online (Sandbox Code Playgroud)
程序打印:
QObject::connect: No such signal QComboBox::activated(0) in <myfile>
Run Code Online (Sandbox Code Playgroud)