Split QML Project into Sub-Directories

Asked

Viewed 14 times

0

I have the following question:


I divided a project of QML, in different sub-directories.

In doing build, the IDE cannot locate the deployed files, returning the following error:

Starting /Users/macbook/workspace/build-UI_UX_Framework-          Desktop_Qt_5_7_0_clang_64bit-    Debug/UI_UX_Framework.app/Contents/MacOS/UI_UX_Framework...
QML debugging is enabled. Only use this in a safe environment.
QQmlApplicationEngine failed to load component
qrc:/_files_qml/instantiationTest.qml:17 Button1 is not a type

/Users/macbook/workspace/build-UI_UX_Framework-  Desktop_Qt_5_7_0_clang_64bit-   Debug/UI_UX_Framework.app/Contents/MacOS/UI_UX_Framework exited with code 0


I tried to change options in the .Framework.pro file, but I could not resolve the issue. I appreciate the feedback Here is an image of the project.

http://imgur.com/wdttT3v

  • in my case, I forgot to include the files in their subdirectories. something like that:

  • import Qtquick 2.0 import Qtquick.Window 2.0 import "_Buttons/" import "_Midikeyboards/" import "_Stochasticselectors/" import "_Sliders/" import "_imgButtons/"

1 answer

0


I forgot to include the files in their subdirectories. It was something like:

import QtQuick 2.0 
import QtQuick.Window 2.0 
import "_Buttons/" 
import "_MIDIKeyboards/" 
import "_StochasticSelectors/" 
import "_Sliders/" 
import "_imgButtons/" 

Browser other questions tagged

You are not signed in. Login or sign up in order to post.