这个错误说明程序中有野指针。

遇到两次问题:

1.在MainWindow::MainWindow(QWidget *parent) :QMainWindow(parent)函数中:

先运行了函数emit checkPorts();然后才定义Timer_Label = new QTimer(this);

解决:Timer_Label = new QTimer(this)

emit checkPorts();

先定义,后运行即可。

2.使用QMenu *m_menu = new QMenu();在mainwindow.h中未定义

mainwindow.h中增加class QMenu;
mainwindow.cpp中增加#include <QMenu>

QT The inferior stopped because it received a signal from the operating system.相关推荐

  1. [QT]The inferior stopped because it received a signal from the operating system 自己解决方法

    [QT 编译] QT运行过程中遇到"The inferior stopped because it received a signal from the operating system.& ...

  2. 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对 ...

  3. 【QT】野指针报错The inferior stopped because it received a signal from the Operating System.

    运行的时候会崩溃,并提示如下错误: Signal received The inferior stopped because it received a signal from the Operati ...

  4. 【QT】The inferior stopped because it received a signal from the operating system及opencv_gapi模块cmake错误

    最近在学习一个使用opencv与qt以及其他一些外部库的项目,项目原本是使用opencv2编写的,项目最近要升级,要利用到opencv4版本以上的一些特性,比如opencv4的dnn模块.但整个从op ...

  5. Qt发布版本退出时错误处理“The inferior stopped because it received a signal from the operating system.”

    Qt程序在debug和release下都可以正常运行:并且发布的release也可以运行:但是在点击关闭按键的时候,MainWindow会进入到析构函数中,然后会蹦出对话框,并提示如下错误: Sign ...

  6. Qt 出现空指针错误:The inferior stopped because it received a signal from the Operating System

    Qt 出现空指针错误:The inferior stopped because it received a signal from the Operating System 问题 程序运行的时候出现崩 ...

  7. QT报错:The inferior stopped because it received a signal from the Operating System.

    QT运行报错 Signal received The inferior stopped because it received a signal from the Operating System. ...

  8. Qt调试错误:The inferior stopped because it received a signal from the Operating System.SIGSEGV

    现象: 调试时弹窗: Signal received The inferior stopped because it received a signal from the Operating Syst ...

  9. The inferior stopped because it received a signal from the Operating System.

    前景提要:要理解这个错误的根源: -------------- 根源:用户的指针指向了系统的内存区域: 表象:"程序异常结束" ".exe crashed" : ...

最新文章

  1. jpa 自定义sql if_mybatis仿jpa 使用@createDate @updateDate
  2. Swift与OC混编过程中的配置
  3. (二)混合边缘AI人脸检测
  4. Vue 组件 data为什么是函数
  5. 美国下注15亿美元重点搞芯片!电子复兴5年计划首批入围项目曝光
  6. 微波网络归一化转移矩阵[a]导出散射矩阵[S]
  7. 如何避免贫穷和忙碌,在2018年你需要这样提升自己
  8. 获取GridView的BoundField值
  9. 洛谷2142高精度减法(模板)
  10. 解决office 2016公式编辑器空白,无法正常显示公式的问题
  11. python输入一个三位整数、求逆序数_编写程序,从键盘输入一个三位数,求出其逆序数并输出,例如输入123,输出321。编写程序,从键盘输入一个三位数...
  12. 想拿腾讯、阿里、字节跳动offer,除了技术还需要哪些成长?
  13. 关于抢红包的_酷乐研究所 | 过年净抢红包了?我们准备了50种新玩法
  14. nc6单据模板设置没有可选的模板问题解决
  15. JAVA 垃圾回收
  16. Thinkjs——定时任务配置代码示例
  17. [转帖]AMD第三代锐龙处理器首发评测:i9已无力招架
  18. 简历上面的项目经历怎么写?怎么写才能显得突出?
  19. mac book air 安装win10
  20. Missing artifact com.oracle:ojdbc7:jar:10.2.0.7.0

热门文章

  1. 实验(五)键盘检测实验
  2. 华为Mate 20 Pro更新EMUI9.1系统,系统流畅度稳步提高
  3. body 没有被撑开_flex布局被子元素撑开如何保持内容不超出容器的方法
  4. 王者荣耀入门技能树-解答
  5. 联想ThinkPad装window10系统
  6. 颓废了很久了,需要振作了
  7. 使用fiddle进行苹果手机app抓包教程
  8. nginx的平滑升级
  9. 神经网络及其变种串联
  10. Windows7使用Programmer Dvorak键盘布局