![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
一天一个bug
小白@y
小白@y
展开
-
error: no member named ‘orange‘ in namespace ‘Qt‘; did you mean ‘QColor
把Qt::orange 改为 QColorConstants::Svg::orange,编译已执行通过。命名空间来定义标准颜色。在较新的Qt版本中,你可以使用。,但是编译器出现提示未能找到这个成员/未声明该标识符。在较早的Qt版本中,可能没有。这样的定义,但是Qt提供了。原创 2024-05-21 11:25:53 · 187 阅读 · 0 评论 -
error: use of undeclared identifier ‘nh‘
在使用'n'变量时,没有定义好'n',通过把“nh”变量更改为添加'n'定义,编译已通过。在qnode.cpp源文件实现功能模块中添加以下代码。在当前范围找不到名为‘nh'的变量或标识符。原创 2024-05-08 09:21:18 · 172 阅读 · 1 评论 -
error: use of undeclared identifier ‘need_deceleration
在使用'need_deceleration'变量时,没有定义好'need_deceleration',通过添加'need_deceleration'定义,编译已通过。在当前范围找不到名为‘nedd_deceleration'的变量或标识符。在qnode.cpp文件实现功能模块中添加以下两行代码。原创 2024-04-07 17:30:56 · 258 阅读 · 0 评论