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

Svg Text Paths are not rendered in QGraphicsSvgItem

XMLWordPrintable

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

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

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes