Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行自带Demo,控制台出现一些未定义错误 #27

Open
kevinlq opened this issue Mar 4, 2021 · 1 comment
Open

运行自带Demo,控制台出现一些未定义错误 #27

kevinlq opened this issue Mar 4, 2021 · 1 comment

Comments

@kevinlq
Copy link

kevinlq commented Mar 4, 2021

运行demo,

Cyclic dependency detected between "qrc:/net.toou.2d/controls/TToast.qml" and "qrc:/net.toou.2d/controls/TToast.qml"
Cyclic dependency detected between "qrc:/net.toou.2d/controls/TToast.qml" and "qrc:/net.toou.2d/controls/TRectangle.qml"
Cyclic dependency detected between "qrc:/net.toou.2d/controls/TToast.qml" and "qrc:/net.toou.2d/controls/TSVGIcon.qml"
Cyclic dependency detected between "qrc:/net.toou.2d/controls/TToast.qml" and "qrc:/net.toou.2d/controls/TIconButton.qml"
Cyclic dependency detected between "qrc:/net.toou.2d/controls/TToast.qml" and "qrc:/net.toou.2d/controls/TButton.qml"
Cyclic dependency detected between "qrc:/net.toou.2d/controls/TToast.qml" and "qrc:/net.toou.2d/controls/TMouseArea.qml"
Cyclic dependency detected between "qrc:/net.toou.2d/controls/TToast.qml" and "qrc:/net.toou.2d/controls/TLabel.qml"
Cyclic dependency detected between "qrc:/net.toou.2d/controls/TToast.qml" and "qrc:/net.toou.2d/controls/TAwesomeIcon.qml"
qrc:/net.toou.2d/controls/TPopover.qml:80:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }

点击切换主题按钮,主题菜单弹出后,控制台会报这些错误,

: otherData is undefined. Adding an object with a undefined member does not create a role for it.

大概看了下,没有看出来具体问题,开头那个循环依赖是什么问题,请教下?

@kevinlq
Copy link
Author

kevinlq commented Mar 4, 2021

otherData is undefined. Adding an object with a undefined member does not create a role for it

这个问题可能是这些变量没有初始化导致的,源码对应位置初始化后不会报 undefined 错误了。。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant