最新消息: USBMI致力于为网友们分享Windows、安卓、IOS等主流手机系统相关的资讯以及评测、同时提供相关教程、应用、软件下载等服务。

【qt】TypeError: Property 'xxx' of object xxx(0x58fd1c) is not a function

互联网 admin 2浏览 0评论

【qt】TypeError: Property 'xxx' of object xxx(0x58fd1c) is not a function

问题提示
在qml中访问c++类的成员函数,提示“TypeError: Property ‘xxx’ of object xxx(0x58fd1c) is not a function”。

问题原因
函数前面没加 Q_INVOKABLE。

解决方案
函数前面加 Q_INVOKABLE。

【qt】TypeError: Property 'xxx' of object xxx(0x58fd1c) is not a function

问题提示
在qml中访问c++类的成员函数,提示“TypeError: Property ‘xxx’ of object xxx(0x58fd1c) is not a function”。

问题原因
函数前面没加 Q_INVOKABLE。

解决方案
函数前面加 Q_INVOKABLE。

发布评论

评论列表 (0)

  1. 暂无评论