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

Text not center-aligned in QSvgGenerator output

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • Some future release
    • 4.3.0
    • SVG Support
    • None

    Description

      Check the output of this program in for example Firefox or Konqueror:

      #include <QtGui>
      #include <QtSvg>

      int main(int argc, char *argv[])
      {
      QApplication app(argc, argv);

      QSvgGenerator generator;

      generator.setFileName("out.svg");

      QPainter painter(&generator);
      QRectF rect(0, 0, 100, 40);
      painter.fillRect(rect, QColor(127, 127, 127, 63));
      painter.drawText(rect, Qt::AlignCenter | Qt::TextWordWrap, "Hello World");
      }

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            rodal Samuel Rødal
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes