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

QSvgGenerator wrong line thickness

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P3: Somewhat important
    • Some future release
    • 4.7.0
    • SVG Support
    • None
    • Linux entwnb10 2.6.32-25-generic #44-Ubuntu SMP Fri Sep 17 20:26:08 UTC 2010 i686 GNU/Linux

    Description

      I'm using QSvgGenerator to rander a graphics-scene(see application.png) to a svg-file(see globale.svg).
      The lines are created using QGraphicsPath with either a cosmetic pen or a linewidthF of 0.01.
      I always get those fingerpaint lines.
      Here a snip from my code:
      void QtDra::svgPrint ( void )

      { QString filename=QFileDialog::getSaveFileName ( this, "svgname", QString(), "svg-files (*.svg)" ); if ( filename.isEmpty() ) return; QSvgGenerator generator; generator.setFileName(filename); generator.setSize(QSize(igw, igh)); generator.setViewBox(QRect(0, 0, igw, igh)); generator.setTitle(tr("bocad svg Drawing haha")); QPainter printerpainter( &generator ); render( &printerpainter ); }

      Only for information, I'm using the same technique to print o0n a printer.

      So what can I do to get something like wysiwig ?

      Attachments

        1. globale.svg
          164 kB
        2. application.png
          application.png
          199 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            mifalck Michael Falck
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes