1 、边界超限
OpenCV Error: Assertion failed (dims <= 2 && data && (unsigned)i0 < (unsigned)size.p[0] && (unsigned)(i1*DataType<_Tp>::channels) < (unsigned)(size.p[1]*channels()) && ((((sizeof(size_t)<<28)|0x8442211) >> ((DataType<_Tp>::depth) & ((1 << 3) - 1))*4) & 15) == elemSize1()) in cv::Mat::at, file c:\projects\circledectec\circledectec\opencv\build\include\opencv2\core\mat.hpp, line 537
- 数据类型问题,初始化矩阵的数据类型为CV_64FC1(double)时,以at()访问时应为double型
2 、 error C4996: ‘std::_Copy_impl’:
- c++预处理器添加_SCL_SECURE_NO_WARNINGS
3 、 exe与platforms放在统一文件路径下,界面的图片全部消失
- 从QT主目录下plugins文件夹中的imageformats文件夹拷贝到exe所在目录中即可,imageformats文件夹包含了许多图片格式的插件
4 、Qt 界面最小化后再次打开,导致所有控件不刷新,但是能够接收鼠标事件
- -解决办法:
void CBCTUI::showEvent(QShowEvent *e)
{
// Necessary! If not do this, when you minimize the window
// and restore, the button will ignore the hover event.
repaint();
this->setAttribute(Qt::WA_Mapped);
QWidget::showEvent(e);
}

最低0.47元/天 解锁文章
458

被折叠的 条评论
为什么被折叠?



