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

C++ QML Integration Demo App

 #include "myglobalobject.h"
 #include <QDebug>

 MyGlobalObject::MyGlobalObject() : m_counter(0)
 {
   // perform custom initialization steps here
 }

 void MyGlobalObject::doSomething(const QString &text) {
   qDebug() << "MyGlobalObject doSomething called with" << text;
   setCounter(m_counter + 1);
 }

 int MyGlobalObject::counter() const {
   return m_counter;
 }

 void MyGlobalObject::setCounter(int value) {
   if(m_counter != value) {
     m_counter = value;
Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded