我在window下编写的程序能够正常运行,然后把源码拿到linux下的QTCreator结果程序异常退出,win下linux都是QT5.3.2,构建是没有任何问题的,可是运行就直接异常结束了,
报错如下:
Starting /home/zqs/QT/build-Final-Desktop_Qt_5_4_0_GCC_64bit-Debug/Final...
QMetaObject::connectSlotsByName: No matching signal for on_button_turn_liucheng_clicked()
QMetaObject::connectSlotsByName: No matching signal for on_button_turn_xitong_clicked()
QMetaObject::connectSlotsByName: No matching signal for on_button_turn_netconfig_clicked()
QMetaObject::connectSlotsByName: No matching signal for on_button_turn_data_clicked()
QMetaObject::connectSlotsByName: No matching signal for on_button_turn_historydata_clicked()
QMetaObject::connectSlotsByName: No matching signal for on_button_turn_alarm_clicked()
QMetaObject::connectSlotsByName: No matching signal for on_button_turn_shezhi_clicked()
QMetaObject::connectSlotsByName: No matching signal for on_button_true_clicked()
QMetaObject::connectSlotsByName: No matching signal for on_button_1_clicked()
QMetaObject::connectSlotsByName: No matching signal for on_button_2_clicked()
QMetaObject::connectSlotsByName: No matching signal for on_button_3_clicked()
QMetaObject::connectSlotsByName: No matching signal for on_button_4_clicked()
QMetaObject::connectSlotsByName: No matching signal for on_button_5_clicked()
QMetaObject::connectSlotsByName: No matching signal for on_button_6_clicked()
QMetaObject::connectSlotsByName: No matching signal for on_button_7_clicked()
QMetaObject::connectSlotsByName: No matching signal for on_button_8_clicked()
QMetaObject::connectSlotsByName: No matching signal for on_button_9_clicked()
QMetaObject::connectSlotsByName: No matching signal for on_button_0_clicked()
QMetaObject::connectSlotsByName: No matching signal for on_button_dian_clicked()
QMetaObject::connectSlotsByName: No matching signal for on_button_shanchu_clicked()
QMetaObject::connectSlotsByName: No matching signal for on_button_clean_clicked()
QMetaObject::connectSlotsByName: No matching signal for on_button_ok_clicked()
QMetaObject::connectSlotsByName: No matching signal for on_button_close_clicked()
程序异常结束。
/home/zqs/QT/build-Final-Desktop_Qt_5_4_0_GCC_64bit-Debug/Final crashed
这个报错没有任何提示,运行应该弹出我创建的窗口,可是窗口都还没有弹出就直接异常结束了
------解决思路----------------------
试试先把那些注释了,慢慢找问题
------解决思路----------------------
它是说信号和槽根本就没connect上
Qt Creator按F5启动调试,会在崩溃的那一行停下来
仔细研究一下调用栈和变量大概就知道问题了