Simpler way of extracting types from QByteArray
Simpler way of extracting bytes from QByteArray
This commit is contained in:
parent
957aab008c
commit
c69e04db2d
@ -190,12 +190,7 @@ def _generateItemSvg(item, nodes=None, root=None, options={}):
|
||||
## this is taken care of in generateSvg instead.
|
||||
#if hasattr(item, 'setExportMode'):
|
||||
#item.setExportMode(False)
|
||||
|
||||
if QT_LIB in ['PySide', 'PySide2']:
|
||||
xmlStr = str(arr)
|
||||
else:
|
||||
xmlStr = bytes(arr).decode('utf-8')
|
||||
doc = xml.parseString(xmlStr.encode('utf-8'))
|
||||
doc = xml.parseString(arr.data())
|
||||
|
||||
try:
|
||||
## Get top-level group for this item
|
||||
|
Loading…
Reference in New Issue
Block a user