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

QDomDocument::setContent in combination with QFile::open with QIODevice::ReadOnly bug

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 4.7.1
    • XML: DOM
    • None
    • Windows 7 x64

    Description

      QFile f("file.xml");
      f.open(QIODevice::ReadOnly | QIODevice::Text);
      QDomDocument xml;
      xml.setContent(&f);
      ...

      setContent returns successfully, but QFile destructor raises exception. When QIODevice::ReadOnly is removed, everything works fine.

      Attachments

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

        Activity

          People

            docteam Qt Documentation Team
            bongoyozo Josip Basic
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes