Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    QXmlQuery QXML::XSLT20 fails

    General and Desktop
    1
    1
    287
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      antonio last edited by

      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");
      }

      1 Reply Last reply Reply Quote 0
      • First post
        Last post