Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-14008

QXmlQuery: Returned result of evaluateTo ( QString * output ) in case nothing is found

    XMLWordPrintable

Details

    Description

      In case the evaluation works ok QXmlQuery::evaluateTo ( QString * output ) returns true.
      But what is the standard way to check whether something was found?
      I would have expect that I could check for (!output->isEmpty()).
      This does not work as output seems to contain one character which looks like ASCII 10 in case nothing was found.

      Please add a line to the documentation about how to check for a result.

      I check for (QXmlQuery::evaluateTo ( QString * output )) && (output->size() >1).

      PS:
      I would rather preffer to be able to check for !output->isEmpty() or !output->isNull()

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            laknoll Lars Knoll
            gerhard w schuster Gerhard Walter Schuster
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes