我想通过信号与槽函数的关系来调用UI,结果报错, 报错代码如下: mcuDialog *McuSelect = new mcuDialog; connect(&McuSelect,SIGNAL(sigal_mcucomfirm()),this,SLOT(slot_setmcutype()));
正确代码如下:
mcuDialog *McuSelect = new mcuDialog; connect(McuSelect,SIGNAL(sigal_mcucomfirm()),this,SLOT(slot_setmcutype()));
去掉了& 就无报错了