Forums

OverviewFelgo 2 Support (Qt 5) › "File not found" while starting empty project

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #15726

    Lev

    Qt 5.7.1 Windows 7 MinGW

    When i try to run empty Felgo App project i’m getting error:

    QQmlApplicationEngine failed to load component

    file:///C:/Users/Levolex/qml/Main.qml:-1 File not found

     

    There is no Main.qml file on this path, but I wonder why the library searches QML-files in my user directory and not in project build directory where they are (and it makes sense). In main.cpp I see only relative path ” vplay.setMainQmlFileName(QStringLiteral(“qml/Main.qml”));” and project settings working directory is set to my project directory which contains “qml” subdir. So everything seems to be ok. What settings I should make to fix this problem?

    #15729

    Günther
    Felgo Team

    Hi!

    This error seems a bit strange, the relative path in main.cpp is correct and should use the QML files in the build directory of your project.
    Did you install Felgo to a simple default path like C:\FelgoSDK or somewhere else (e.g. you user directory)? It seems that there are sometimes issues on Windows with long or more complex paths.

    You can also try to reinstall Felgo with our installer and see if a clean reinstall to a simple path can solve the problem.

    If it doesn’t help, you can also choose to add QML files as resources to the binary instead (this is recommend for the final publish build anyways).
    See here to learn more about this: Qt Resource System

    Best,
    Günther

    #15733

    Lev

    Hi.

    Actually problem occured with installation through the maintananceTool.exe of pure Qt installation into the same directory (c:\Qt\5.7\). After your recommendations I’ve completely removed previous installation and used Felgo installer this time, and the error disappeared. So may be “.”(dot) character in the path was the reason. Thank you.

     

    Best,

    Lev

Viewing 3 posts - 1 through 3 (of 3 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