QML Object Type is not a type error in QTCreator

后端 未结 4 1257
无人及你
无人及你 2021-02-20 10:01

Hi Everyone i am new to QT and i am having trouble loading one qml through another qml Basically i have created a qml MyTabView(MyTabView.qml)

 import QtQuick 2.         


        
4条回答
  •  时光说笑
    2021-02-20 10:48

    You should rename your "TabView.qml" to something like "MyTabView.qml".

    Because of that import

    import "."
    

    you have conflict of TabView from "QtQuick.Controls 1.2" and local folder "."

提交回复
热议问题