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

Skewed rectangle on Android

    XMLWordPrintable

Details

    • Android

    Description

      When drawing a rectangle with floating point precision to QQuickPaintedItem, the result is skewed on some Android devices. Attached is images and example app to explain the issue. The issue happens if the x position or the width is 400.5. Problem appears only on ZenPad 3s 10.

      [Information]
      Qt 5.7.1
      Building OS: Mac OS X 10.11
      Android OS: 6.0.1
      andoird SDK: r24
      NDK: r10e
      ant: 1.9.4
      JDK: 1.8.0_91

       

       Output of the example: 

      Paint left: QRectF(0,0 400x400) , right: QRectF(400,0 400x400)
      Paint left: QRectF(0,0 400.5x400) , right: QRectF(400.5,0 400.5x400)
      

       

      Attachments

        1. DrawTest.zip
          3 kB
        2. NG.jpg
          NG.jpg
          110 kB
        3. OK.jpg
          OK.jpg
          90 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            stromme Christian
            misalmel Mika Salmela
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes