-
Notifications
You must be signed in to change notification settings - Fork 264
Closed
Description
The following code does not work:
import pya
filepath = "x.xml"
# file=open(filepath,'r')
# a=file.read()
# file.close()
qfile = pya.QFile(filepath)
source = pya.QXmlInputSource(qfile)
handler = pya.QXmlContentHandler()
error_handler = pya.QXmlErrorHandler()
reader = pya.QXmlSimpleReader()
reader.setContentHandler(handler)
reader.setErrorHandler(error_handler)
# Gives Ambiguous overload variants - multiple method declarations match arguments in QXmlSimpleReader.parse:
reader.parse(source)
Reason: two overloads of "parse" -> there should be only one.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels