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

Blurry SVG when scaled in Qt 5.2.1 based browser

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.2.1
    • WebKit
    • None
    • Linux x86_64

      we created an HTML5 page that has svg images and on click, svg should be scaled using JavaScript (scale), we also created a qt based web browser, on Chromium and qt 4.8.5 web browser the svg images scale correctly but using the same qt based web browser with qt 5.2.1 the svg images look blurry, as in the attached screen shots.

      this is the JavaScript part for the scaling

      currentGauge.animate(

      { margin: '-32 0 0 -275px' }

      , 'slow');

      currentGauge.animate(

      { tempScaler: 2 }

      , {
      step: function(now, fx)

      { now = now + 1; $(this).css('-webkit-transform', "scale(" + now + "," + now + ")"); }

      ,
      complete: function()

      { console.log("Scale done" + currentGauge.css("margin")); scaleInProgress = false; }

      }, 'linear');
      } else {
      scaleInProgress = true;
      scaledGauge = false;
      currentGauge.animate(

      { tempScaler: 2 }

      , {
      step: function(now, fx)

      { var ajustedNow = 3 - now; $(this).css('-webkit-transform', "scale(" + ajustedNow + "," + ajustedNow + ")"); }

      ,
      duration: 'slow'
      }, 'linear');

      currentGauge.animate(

      { 'margin-top': orginalMarginTop, 'margin-right': originalMarginRight, 'margin-bottom': originalMarginBottom, 'margin-left': originalMarginLeft }

      , 'slow', function()

      { $(".gauge_box").show(); console.log("Scale done"); scaleInProgress = false; }

      );

      }
      }

        1. Chromium.png
          17 kB
          Alharith Al-ameri
        2. Qt 4.8.5.png
          16 kB
          Alharith Al-ameri
        3. Qt 5.2.1.png
          33 kB
          Alharith Al-ameri
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            annulen Konstantin Tokarev
            alharith Alharith Al-ameri
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes