Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!

Qt World Summit Conference App

 #include "diskcachefactory.h"

 #include <QNetworkAccessManager>
 #include <QNetworkCacheMetaData>
 #include <QNetworkDiskCache>
 #include <QStandardPaths>

 #include "cachingnetworkaccessmanager.h"
 #include "cachereply.h"

 DiskCacheFactory::DiskCacheFactory(int cacheSize): mCacheSize(cacheSize) { }

 QNetworkAccessManager *DiskCacheFactory::create(QObject *parent) {
   QNetworkAccessManager *nam = new CachingNetworkAccessManager(parent);

   QNetworkDiskCache *diskCache = new QNetworkDiskCache(nam);
   QString cacheFolder = QStandardPaths::writableLocation(QStandardPaths::CacheLocation);


   qDebug() << "installing network cache of" << (mCacheSize / 1024) << "KB in folder" << cacheFolder;

   ((CachingNetworkAccessManager *)nam)->clearIgnoredUrlsFromCache();