Qt ERROR : The inferior stopped because it received a signal from the operating system.
IDE
Qt 5.14.1 - Qt Creator 4.11.0 (Community)
错误描述
编译并不报错,运行时程序崩溃(停止工作)
调试时错误提示(截图):
错误原因
通过指向QMenu对象的指针调用void QWidget::addAction(QAction *action)时,将未初始的QAction*类型成员变量作为参数,即使用野指针传参
参考文章
Qt 错误:The inferior stopped because it received a signal from the Operating System_非常道的博客-CSDN博客
[QT]The inferior stopped because it received a signal from the operating system 自己解决方法_erenzai_CUGB的博客-CSDN博客
发布者:admin,转转请注明出处:http://www.yc00.com/web/1690910032a461042.html
评论列表(0条)