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

Failure rendering large images inside a QRect on a QQuickPaintedItem

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Out of scope
    • Affects Version/s: 5.9, 5.11
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      Linux/X11, Windows

      Description

      When rendering a large image inside a QRect with QPainter::drawImage onto a QQuickPaintedItem which was set up the following way:

      setRenderTarget(QQuickPaintedItem::FramebufferObject);

      after a certain size of the target QRect, the image renders as a black rectangle instead of the required image.

      If the render target is not QQuickPaintedItem::FramebufferObject the image drawing performs as expected.

      The issue has been observed on both Linux and Windows platforms, with graphics cards using both Nivida and Intel chipsets.

      In the attached test application supplying a scale more than 0.6 will trigger this behaviour.

        Attachments

        1. blaa.png
          blaa.png
          7.08 MB
        2. main.cpp
          0.5 kB
        3. main.qml
          0.3 kB
        4. MyImage.cpp
          0.6 kB
        5. MyImage.h
          0.3 kB
        6. qml.qrc
          0.1 kB
        7. qswipetest.pro
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            vgt Eirik Aavitsland
            Reporter:
            ferencld Ferenc Deak
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes