Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business


OverviewFelgo 3 Support (Qt 5) › using c++ not working.


Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #24088


    Hi I just started using felgo and I need to use c++ with it. I’m following the tutorial on c++ integration but I’m running into trouble. I’m following here but when I get to Expose an Object to QML as a Context Property I get this error at engine.rootContext()->setContextProperty:


    main.cpp:34:25: error: member access into incomplete type ‘QQmlContext’
    qqml.h:570:7: note: forward declaration of ‘QQmlContext’

    I can get to engine.rootContext() but setContextProperty doesn’t seem to exist.


    Any help and/or advice?



    Hi Christopher,

    thank you for reaching out to us. Is it possible that you’re missing the include for QQmlContext in your main.cpp file:

    #include <QQmlContext>


    Feel free to let me know if that fixes your issues or if you need help with something else.

Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded