main.cpp Example File

 #include <QApplication>
 #include <FelgoApplication>

 #include <QQmlApplicationEngine>
 #include "cpp/diskcachefactory.h"

 int main(int argc, char *argv[])
   QApplication app(argc, argv);
   FelgoApplication felgo;

   // Use platform-specific fonts instead of Felgo's default font

   QQmlApplicationEngine engine;

   // Set an optional license key from project file
   // This does not work if using Felgo Live, only for Felgo Cloud Builds and local builds

   // use this during development
   // for PUBLISHING, use the entry point below
 //  felgo.setMainQmlFileName(QStringLiteral("qml/QtWSMain.qml"));

   // use this instead of the above call to avoid deployment of the qml files and compile them into the binary with qt's resource system qrc
   // this is the preferred deployment option for publishing games to the app stores, because then your qml files and js files are protected
   // to avoid deployment of your qml files and images, also comment the DEPLOYMENTFOLDERS command in the .pro file
   // also see the .pro file for more details

   // 60MB cache for network data
   engine.setNetworkAccessManagerFactory(new DiskCacheFactory(1024 * 1024 * 60));


   return app.exec();

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
create apps
create games
cross platform
native performance
3rd party services
game network
level editor
easiest to learn
biggest time saving
best support