meshroom.ui.utils.QmlInstantEngine

- class meshroom.ui.utils.QmlInstantEngine(sourceFile='', watching=True, verbose=False, parent=None)
QmlInstantEngine is an utility class helping developing QML applications. It reloads itself whenever one of the watched source files is modified. As it consumes resources, make sure to disable file watching in production mode.
- __init__(sourceFile='', watching=True, verbose=False, parent=None)
watching – Defines whether the watcher is active (default: True) verbose – if True, output log infos (default: False)
Methods
__init__([sourceFile, watching, verbose, parent])watching -- Defines whether the watcher is active (default: True) verbose -- if True, output log infos (default: False)
addFile(filename)Add the given 'filename' to the watched files list.
addFiles(filenames)Add the given 'filenames' to the watched files list.
addFilesFromDirectory(dirname[, recursive])Add files from the given directory name 'dirname'.
addImageProvider(self, id, arg__2)addImportPath(self, dir)addNamedBundle(self, name, fileName)addPluginPath(self, dir)baseUrl(self)blockSignals(self, b)childEvent(self, event)children(self)clearComponentCache(self)collectGarbage(self)connect(...)connectNotify(self, signal)contextForObject(arg__1)customEvent(self, event)deleteLater(self)disconnect(...)disconnectNotify(self, signal)dumpObjectInfo(self)dumpObjectTree(self)dynamicPropertyNames(self)emit(self, arg__1, *args)evaluate(self, program[, fileName, lineNumber])event(self, arg__1)eventFilter(self, watched, event)findChild(self, arg__1[, arg__2])findChildren(-> typing.Iterable)getRegisteredFiles()Returns the list of watched files
globalObject(self)imageProvider(self, id)importModule(self, fileName)importPathList(self)importPlugin(self, filePath, uri, errors)incubationController(self)inherits(self, classname)installEventFilter(self, filterObj)installExtensions(self, extensions[, object])installTranslatorFunctions(self[, object])isInterrupted(self)isSignalConnected(self, signal)isWidgetType(self)isWindowType(self)killTimer(self, id)load()loadData(self, data[, url])metaObject(self)moveToThread(self, thread)networkAccessManager(self)networkAccessManagerFactory(self)newArray(self[, length])newErrorObject(self, errorType[, message])newObject(self)newQMetaObject(self, metaObject)newQObject(self, object)objectName(self)objectOwnership(arg__1)offlineStorageDatabaseFilePath(self, ...)offlineStoragePath(self)onFileChanged(filepath)Handle changes in a watched file.
outputWarningsToStandardError(self)parent(self)pluginPathList(self)property(self, name)receivers(self, signal)registerUserData()reload()removeEventFilter(self, obj)removeFile(filename)Remove the given 'filename' from the watched file list.
removeImageProvider(self, id)retranslate(self)rootContext(self)rootObjects(self)sender(self)senderSignalIndex(self)setBaseUrl(self, arg__1)setContextForObject(arg__1, arg__2)setImportPathList(self, paths)setIncubationController(self, arg__1)setInitialProperties(self, initialProperties)setInterrupted(self, interrupted)setNetworkAccessManagerFactory(self, arg__1)setObjectName(self, name)setObjectOwnership(arg__1, arg__2)setOfflineStoragePath(self, dir)setOutputWarningsToStandardError(self, arg__1)setParent(self, parent)setPluginPathList(self, paths)setProperty(self, name, value)setUrlInterceptor(self, urlInterceptor)setVerbose(verboseValue)Activate (True) or deactivate (False) the verbose.
setWatching(watchValue)Enable (True) or disable (False) the file watching.
signalsBlocked(self)startTimer(self, interval[, timerType])thread(self)throwError()timerEvent(self, event)toScriptValue(self, arg__1)tr(self, arg__1[, arg__2, arg__3])trimComponentCache(self)urlInterceptor(self)Attributes
AllExtensionsConsoleExtensionCppOwnershipGarbageCollectionExtensionJavaScriptOwnershipTranslationExtensiondestroyedexitobjectCreatedobjectNameChangedquitstaticMetaObjectwarningswatchedExtensionsReturns the list of extensions used when using addFilesFromDirectory.