Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QXmlQuery QXML::XSLT20 fails



  • I have this piece of code working since 1 year ago. I think that the problem comes when the size of a XML file grows up to 2.5MB; normally they are around 100KB.

    QXmlQuery query(QXmlQuery::XSLT20);
    query.setFocus(QUrl::fromLocalFile(xmlFile_)
    query.setQuery(QUrl::fromLocalFile(xsltFile_));

    QString array;
    if(!query.evaluateTo(&array)){ //<--the program halts here
    qDebug("fail");
    }


Log in to reply