Forums

OverviewFelgo 2 Support (Qt 5) › How to import file from the same diectory

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #21741

    Nuno Carvalho

    Hi,

    I am new in Felgo.

    I am following the Udemy course. I had no problem importing a page file from a different directory but when I follow the video I get an error importing a file from the same directory. I am trying to import to Main.qml

    What is the problem?

     

    Thanks in advance for your help.

    import Felgo 3.0
    import QtQuick 2.0
    
    App {
    
        // name of file: propertyMain.qml
     propertyMain {}
    
    
    }

     

    #21742

    Ginzo Milani

    you can try doing

    import "propertyMain.qml" as propertyMain

     

    #21756

    Alex
    Felgo Team

    Hi,

    by definition, qml files should start with uppercase letters (PropertyMain.qml), this could already solve the issue.

    Cheers,
    Alex

    #21764

    Nuno Carvalho

    Thanks

Viewing 4 posts - 1 through 4 (of 4 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
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support