Forums

OverviewFelgo 2 Support (Qt 5) › C++ support?

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

    Felgo User

    Hi,
    I’m experienced in C++ programming, but have no idea about QML. Can I access the Felgo framework from QT C++ code?

     

    Thanx,

    Chris

     

    #18542

    Günther
    Felgo Team

    Hi!

    QML is a declarative UI language for Qt, which allows fast coding speed and easy UI development. To take advantage of all the benefits of QML, Felgo Components are mainly based on QML, but also use e.g. C++ or and native code in the background for e.g. physics components or Felgo Plugins.

    To learn coding with QML, you can have a look at our tutorials, e.g. our getting started tutorial: https://felgo.com/doc/vplay-get-started-games/

    If you want to mix-in C++ code with QML, you can have a look at https://felgo.com/cross-platform-development/how-to-expose-a-qt-cpp-class-with-signals-and-slots-to-qml

    This is the Qt documentation about Integrating C++ and QML code in your project: http://doc.qt.io/qt-5/qtqml-cppintegration-topic.html

    Hope this helps!

    Best,
    Günther

    #21898

    test opty

    Hi,

     

    I used the register type method and add a C++ class to my Felgo app and registered it this way:

       qmlRegisterType<Backend>("com.Metrophan.backend", 1, 0, "BackEnd");
    
    

    And then added

    import com.Metrophan.backend 1.0

     

     

    And when I run the project normally “ctrl+R” it runs successfully. But when I want to test it using the live client app, I get this error message:

    QQmlComponent: Component is not ready
    file:/serverApp//qml/Main.qml:3: module “com.Metrophan.backend” is not installed

     

    Why do I get this error and how to solve it, please?

     

     

    #21929

    Alex
    Felgo Team
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