Tour Preview

Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!


OverviewFelgo 2 Support (Qt 5) › doubt about sub directories and imports

Viewing 1 post (of 1 total)
  • Author
  • #21745


    I have a question about imports and directories, is there a maximum of level on the directories to add imports? I was trying to order my application files, mainly the pages on subdirectories, but the project began to fail

    I have on MainItem all the imports

    import "pages"
    import "logic"
    import "model"
    import "storage"

    and on pages I want to add my registration pages on a subdirectory called registration:







    if I add ‘import “pages/registration”‘ on the MainItem component the navigation page give theĀ  error: ‘EmailRegistrationPage’ is not a component, and if I add the import on the navigation page: ‘import “registration”‘ the project give me the error: ‘type MainItem is unavialable’, I don’t understand how this works, since in

    pages I have a subdirectory that contains some components I created, and those don’t give me any error when I imported on the pages.





Viewing 1 post (of 1 total)

RSS feed for this thread

You must be logged in to reply to this topic.