The Loader class is a URI resolver and resource loader for an SCXML compiler. 更多 …
PySide2.QtScxml.QScxmlCompiler.
Loader
¶
Creates a new loader.
PySide2.QtScxml.QScxmlCompiler.Loader.
load
(
name
,
baseDir
,
errors
)
¶
name – unicode
baseDir – unicode
errors – 字符串列表
QByteArray
Resolves the URI
name
and loads an SCXML file from the directory specified by
baseDir
.
errors
contains information about the errors that might have occurred.
返回
QByteArray
that stores the contents of the file.