Skip to content

Conversation

@mentalfl0w
Copy link
Contributor

用typeId()代替type()来消除在Qt 6.0+上出现的编译警告,因为type()已经被标记为弃用。

相关编译警告如下:

warning: 'type' is deprecated: Use typeId() or metaType(). [-Wdeprecated-declarations]
  748 |             if (attribute.type() != QVariant::Bool)

用typeId()代替type()来消除在Qt 6.0+上出现的编译警告,因为type()已经被标记为弃用。
@wangwenx190
Copy link
Collaborator

非常感谢!

@wangwenx190 wangwenx190 merged commit 5c04046 into stdware:main May 23, 2025
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

Successfully merging this pull request may close these issues.

2 participants