imports don't work after building design studio project
-
My project was created using Qt Design Studio and i exported it to cmake so that I can edit the c++ files using Qt Creator.
While all that works, in the "content" directory, the Screen01.ui.qml imports files from "imports/{project name}" directory like so:
import "../imports/{projectname}"
and Qt Design Studio recognizes it to be valid and all works well.
But after building the app from qtcreator, using the exported cmake data, the app doesn't run and gives a "wrong directory" error for the same import statement. says it cannot find "../imports/{projectname}"
I had to change it to "qrc:/{projectname}" for it to work after building it but now Qt Design Studio doesn't recognize this and cannot render the views properly with missing dependencies.
I can't find anything in the docs that addresses this problem. It seems, a qrc file is being created during build but I don't know where it is or how to somehow use it during preview in design studio. This is incredibly frustrating and seems to be some kind of incompatibility between qt creator and qt design studio.