我这段qt代码为啥不执行信号和槽函数呢是怎么回事呢?
QToolBar *toolBar =addToolBar(tr("Tool"));
QToolButton *btnZoomIn = new QToolButton( toolBar );
btnZoomIn->setText( "ZomIn" );
btnZoomIn->setIcon(QIcon(":images/zoomforward.png"));
btnZoomIn->setCheckable( true );
btnZoomIn->setToolButtonStyle( Qt::ToolButtonTextUnderIcon );
toolBar->addWidget( btnZoomIn );
connect(btnZoomIn,SIGNAL(toggled(bool)),this,SLOT(enableZoomMode(bool)));
小弟我咨询下各位大神,我这段代码为啥不执行信号和槽函数呢