----- Original Message -----
> From: "Wiebe Cazemier" <wi...@halfgaar.net>
> To: interest@qt-project.org
> Sent: Saturday, 24 May, 2014 8:08:02 PM
> Subject: [Interest] Subclassing QIODevice and passing it to QXMLStreamReader
> 
> I'm trying to use a subclassed QIODevice for parsing XML with
> QXMLStreamreader, but no matter what I do, the data is not read.
> 
> The docs say:
> 
> > Subclasses of QIODevice are only required to implement
> > the protected readData() and writeData() functions.
> 
> But no matter what I do, the code in my ReadData function is not executed. I
> also tried overriding basically all virtual functions, but none of them get
> called.
> 
> I wrote some test code using QTextStream with my custom QIODevice, which
> works perfectly.
> 
> I use QXMLStreamReader::readNext() to read through the buffer, so how does it
> read from the QIODevice?
> 
> Regards,
> 
> Wiebe

Haha, never mind. I forgot to open it :)


_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to