Skip to content

Instantly share code, notes, and snippets.

/main.cpp Secret

Created May 12, 2016 12:19
What would you like to do?
#include <QApplication>
#include <QQmlApplicationEngine>
#include <QQmlContext>
#include "Filter.h"
int main(int argc, char *argv[])
QApplication app(argc, argv);
QQmlApplicationEngine engine;
Filter* filter = new Filter(NULL);
engine.rootContext()->setContextProperty("filter", filter);
engine.addImageProvider(QLatin1String("filter"), filter);
return app.exec();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment