#include "ImageJsModule.hpp" #include "ImageJsObject.hpp" ImageJsModule::ImageJsModule(QJSEngine* engine) : BaseJsModule(engine) {} QJSValue ImageJsModule::load(const QString& path) { // TODO(Faraphel): can the new lead to a memory leak ? return this->engine->newQObject(new ImageJsObject(path)); }