Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business


OverviewFelgo 2 Support (Qt 5) › Changing the folder structure

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #24729


    I moved qml/Main.qml from to be src/qml/Main.qml

    The Felgo Live Client does not work, it says:


    file:/MyProject/src/qml/Main.qml: No such file or directory




    Felgo Team

    Hi Miika,

    can you try to clear the cache of the connected client using the button in the Live Server?




    Hi Alex, thanks for the reply!


    Found the button in the client window, in Actions -> Clear project cache and reload.

    I found out that Felgo creates cache at: C:\Users\<username>\AppData\Roaming\Felgo Live Client\<projectname>.

    The said button cleans all folders at that location.

    However, this does not help with the issue. Therefore, a feature suggestion to Felgo: Monitor the actual structure and settings of the user as per the qml locations, and reproduce that structure in the cache and build folders.


    Manual solutions to the issue:

    1. Create your wanted folder structure in the project folder
    2. Change in .pro file: qmlFolder.source = <your wanted path>
    3. Change in main.cpp: felgo.setMainQmlFileName(QStringLiteral(<location and name of your main qml file, relative to proj path>));
    4. To use the live client with custom folder structure: Copy your custom structuring to the cache location mentioned above
    5. To debug and dev normally by running with Qt Creator, you also need to replicate custom structuring at the build folder

    At deployment, things should be changed to use .qrc, I believe, and that will mean other modifications.





    Just wanted to add that it was not actually so easy, the above does not completely work. Copying things doesn’t work, symbolic links might work. However, with custom structures, you’ll lose the straight updateability upon pressing Ctrl-S to the live client window — you need to activate the window and press Ctrl-R. Not sure if applies to the custom live client build, and don’t have time to investigate further. The default foldering is recommended for now, which is a bit disappointing.


    Also, perhaps no need to do anything at the build folder, just rebuild.


    Felgo Team

    Hi Miika,

    you you quickly post your folder structure so we have a change to try and reproduce the issue? So e.g. something like:

    -- qml (--> has Main.qml)
    -- assets
    ---- images
    ---- icons
    -- android
    -- src
    ---- something


Viewing 5 posts - 1 through 5 (of 5 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded