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

Text not center-aligned in QSvgGenerator output

XMLWordPrintable

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

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

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes