Important: Please read the Qt Code of Conduct -

Imports in qml

  • Hello,

    I am having some trouble importing the folders from my library into my qml file .
    QcStyle -> designer
    QcStyle -> Base

    i want to import Base in designer.qml
    i tried following

    import QcStyle.Base .. no gain
    import "../Base" as Base .... no gain
    for both it says "no such directory"

  • import "your/folder/path"

  • And finally my first custom c++ library with Qt 5.12.2 works ![alt text](![image url](0_1558362722831_Capture.PNG image url))

    And its Super Fast !!

Log in to reply