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

QDomDocument::toByteArray changes SVG file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • Some future release
    • 4.6.0
    • XML: DOM
    • None
    • Qt-4.6.0, Linux, GCC 4.3.x

    Description

      Hi, I reported this bug long before the DevDays last year. Somehow it seems to have gotten lost. If not...sorry for this repeat, but I could not find it anywhere in the database.

      The problem is, I load a SVG file into a QDomDocument. Without doing anything I write it out with QDomDocument::toByteArray. I'd expect that since I did nothing with the SVG structure it would render exactly the same as an SVG file, which I load directly into QSvgRenderer. This is not what happens.

      I attach an example program. A simple button. The pressed button image is loaded directly into the QSvgRenderer, the relased button is loaded via a QDomDocument. I'd expect that pressed an released buttons look the same and are undistinguishable. However, as you can see, the label is jumping back and forth.

      Attachments

        1. ButtonProblem.tbz
          5 kB
          Guido Seifert
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            wargand Guido Seifert
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes