Questions tagged [qxmlstreamreader]
46 questions
4
votes
1 answer
Qt QXmlStreamReader Access Violation
I am using Qt 5.11.1(MSVSC2015 32bit) and QtCreator 4.6.2.
I am having trouble parsing XML with QXmlStreamReader. Code is written based on Qt's example.
When my code is executed it produces access violation in QIODevice.cpp in checkWarnMessage…

Aleksandar
- 77
- 5
4
votes
1 answer
QXmlStreamReader: can't follow the flow of readNextStartElement()
I have to implemenent a xml parser that constructs and places Qt objects in a widget in runtime. I wrote a parser based on this. A module represents the QWidget that will hold the QPushButton and QCheckBox instances. xml is a QXmlStreamReader, just…

tobilocker
- 891
- 8
- 27
4
votes
1 answer
Getting paths of qrc files in Qt
I want to know how to access the paths of files in the qrc file in order to use them as strings in an array.
An example of qrc file is:
images/1.jpg
…

Kamalpreet Grewal
- 822
- 1
- 13
- 28
3
votes
1 answer
QT: QXmlStreamReader always returns "Premature End of Document" error
I have strange issue with Qt QXmlStreamReader. I'am trying to parse simple document (note: it is generated using QXmlStreamWriter):
…

Vladimir Semotan
- 33
- 4
3
votes
3 answers
How to read an XML file from the disk using Qt?
I want to read an xml file as follow:
QFile myFile("xmlfile");
and then continue with parsing the xml starting from :
QXmlStreamReader xmlData(myFile);
.. the error I get is:
no matching function for call to…

McLan
- 2,552
- 9
- 51
- 85
3
votes
1 answer
XML parsing using QXmlStreamReader doesn't return all elements
I'm trying to parse XML-file using QXmlStreamReader. With following code I only get the first testcase from the sample xml file.
from PyQt4.QtCore import QXmlStreamReader, QFile, QIODevice
class TestcaseReader(object):
def __init__(self,…

Razer
- 7,843
- 16
- 55
- 103
3
votes
1 answer
How can I read the atributes of XML nodes in Qt?
I need to read the a,b,c values(wheqre a,b,c are the name of some atributes) foreach node and list them in a table, but I don't know how to read the node values. Could you give an example code, please?
Thanks in advance

Jaws
- 497
- 8
- 22
2
votes
1 answer
Read XML tags inside StartElement (QXmlStreamReader)
So, I'm attempting to read through a modest-sized XML document. It's structured like so:
Joe Smith
Rick Jones
projects/internal/project2
…

Dito
- 182
- 3
- 12
2
votes
0 answers
Splitting SCXML over multiple xml files
I am creating different SCXML files which are then used by a Qt application. In order to better structure my state machine, I would like to separate the common part of one machine from the custom state of every other machine. So I thought to split…

Stefano
- 3,981
- 8
- 36
- 66
2
votes
1 answer
Qt reading XML structure
I am using Qt5.5, I want to read an XML file into memory maintaining the structure and attributes of the nodes and relationships.
So far I've been using QXmlStreamReader, however this doesn't really do much and I cannot see any obvious way to build…

SPlatten
- 5,334
- 11
- 57
- 128
2
votes
1 answer
The reading loop of QXmlReader for PyQt5 does not return the expected data
I'd like to make an QAbstractItemModel that gets its data from a series of Xml files, all situated in the same directory. Since PyQt5 no longer supports QDomDocument (or atleast i couldn't find a way to make it work), i've had to resort to a…

Mazimer
- 33
- 7
1
vote
1 answer
QXmlStreamReader get tag value
I have a problem with getting value for nested tags using QXmlStreamReader. My xml is as follows:
14.45