-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
5.12.0
After using of:
Text {
anchors.centerIn: parent
text: qsTr("%1 %2").arg(Model.Type.Complex).arg(Model.Mode.Complex)
}
I get the warning:
Previously registered enum will be overwritten due to name clash: Model.Complex
Possible conflicting items:
Model.Type.Complex from scope Model injected by Model
Model.Mode.Complex from scope Model injected by Model
for following enums:
namespace Model {
Q_NAMESPACE
enum class Type {
Simple,
Complex,
};
Q_ENUM_NS(Type)
enum class Mode {
Normal,
Super,
Complex,
};
Q_ENUM_NS(Mode)
} // namespace model
See the full example in the attached application.
Are enum class incorrectly supported, or can this warning mean something is wrong?
- relates to
-
QTBUG-73402 Problem with enum class from namespace used as QObject property
-
- Closed
-