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.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
create apps
create games
cross platform
native performance
3rd party services
game network
level editor
easiest to learn
biggest time saving
best support