Strange behavior in PyQt6
phil at riverbankcomputing.com
Mon May 17 11:24:21 BST 2021
On 16/05/2021 19:05, Detlev Offenbach wrote:
> I am trying to read in an XML file using QXmlStreamReader class. That
> works until the moment I try to get an attribute of an element with
> [<PyQt6.QtCore.QXmlStreamAttribute object at 0x7ff0bb5dc040>]
> Note: self is a subclass of QXmlStreamReader.
> According to the Qt6 docu this call should return a
> QXmlStreamAttributes instances. However, PyQt6 returns a list and that
> causes a call like
> to fail. Do I have to scan through this list by myself or is this an
> implementation flaw?
Hmm, not sure why I did that. The PyQt5 QXmlStreamAttributes class will
be restored in the next snapshot.
More information about the PyQt