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

Svg Text Paths are not rendered in QGraphicsSvgItem

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P4: Low
    • None
    • 4.6.3, 6.8.0 FF
    • SVG Support
    • None
    • Ubuntu 10.04

    Description

      The attached SVG file contains text along a path. (The SVG was copied from W3C site.) If opened in Google Chrome, it appears fine. However, when rendered in QGraphicsSvgItem, the text is not rendered, only the raw path.

      #include <QtGui>
      #include <QtSvg/QGraphicsSvgItem>
      
      int main(int argc, char *argv[]) {
        QApplication app(argc, argv);
        QGraphicsScene *scene = new QGraphicsScene;
        scene->addText("Do you see the text following the path, or just the path?");
        QGraphicsSvgItem *svg = new QGraphicsSvgItem(":/image/curved_text.svg");
        scene->addItem(svg);
        QGraphicsView view(scene);
        view.show();
        return app.exec();
      }
      

      Attachments

        Issue Links

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

          Activity

            People

              matthias_rauter Matthias Rauter
              dmateer Dave Mateer
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes