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

QSvgGenerator doesn't export QPixmap (brush with Qt::TexturePattern)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.15.1, 5.15.2
    • SVG Support
    • None

    Description

      This code produces unfilled svg (for Qt4 it works fine):

          QSvgGenerator generator;                              
          generator.setSize(QSize(100, 100));
          generator.setViewBox(QRect(0, 0, 100, 100));
          generator.setFileName("test.svg");
      
          QPixmap picture("picture.png");
          QBrush brush(Qt::blue, picture);
      
          QPainter painter;
          painter.begin(&generator);
          painter.fillRect(QRect(0, 0, 100, 100), brush);
          painter.end();
      

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            victor_man Victor Garkusha
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes