Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的代码中
#include <QSystemDeviceInfo> QSystemDeviceInfo devInfo; if (devInfo.productName != "RM-680") { /* do something */}
在构建时出现错误:
error: invalid use of member (did you forget the '&' ?)
我究竟做错了什么?
productName是成员函数。你需要调用它。
productName
if (devInfo.productName() != "RM-680")