[Qbs] qbs / QML issue

Christian Kandeler christian.kandeler at qt.io
Thu Jul 24 14:15:01 CEST 2025


On 7/22/25 10:17 PM, Jochen Becher via Qbs wrote:
> With qbs 3.0.0 I get hundred of thousands (litterally!) warnings from qbs saying that some Qt types are defined twice:
>
> Warning: qabstractitemmodel.h:258: Multiple C++ types called QAbstractItemModel found!
>   (other occurrence in : qabstractitemmodel.h : 258 )
>   This violates the One Definition Rule!
>
> Here is the command that was called.

Can you provide a minimal project that exhibits this problem? Or link to 
a real project where this happens? You are not setting 
Qt.qml.extraMetaTypesFiles expicitly, are you?


Christian



More information about the Qbs mailing list