[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: Strange behavior in PyQt6
From: Phil Thompson <phil () riverbankcomputing ! com>
Date: 2021-05-17 10:24:21
Message-ID: db782276e9e71530cc164fc1bb4eb55f () riverbankcomputing ! com
[Download RAW message or body]
On 16/05/2021 19:05, Detlev Offenbach wrote:
> Hello,
>
> 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
>
> QXmlStreamReader.attributes()
>
>>>> l=self.attributes()
>>>> l
> [<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
>
> l.value("attributeName")
>
> 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.
Thanks,
Phil
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic