1、no matching memeber function for call to connect
解决方案:
对象类的头文件没有加
2、unused parameter ' xxx'
解决方案:
参数未使用,可以在函数体内使用
Q_UNUSED(xxx);
3、提示qml加载组件MyRectangle is not a type
解决方案:
将pro中的
MyRectangle.qml位置移动到main.qml后面即可修复问题
1、no matching memeber function for call to connect
解决方案:
对象类的头文件没有加
2、unused parameter ' xxx'
解决方案:
参数未使用,可以在函数体内使用
Q_UNUSED(xxx);
3、提示qml加载组件MyRectangle is not a type
解决方案:
将pro中的
MyRectangle.qml位置移动到main.qml后面即可修复问题