Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Custom QQuickPaintedItem looks bad on Raspberry Pi
Qt 6.12 LTS is out! See what's new in the release blog

Custom QQuickPaintedItem looks bad on Raspberry Pi

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
8 Posts 3 Posters 2.1k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    StoatPatronus
    wrote on last edited by
    #1

    Hello all,
    I wrote a QtQml-based application for a Raspberry Pi 2B+ earlier this year, with plenty of help from these forums :) It's a data recorder for sampling electric values.

    I'm expanding its capabilities, and have run into a problem. It can now support over 240 separate values. Originally I used a custom QQuickPaintedItem, and put in a Flickable so users could scroll through the values. When I run the new version with 240 values, the text becomes blurry, like it's been resized.

    I have some screenshots that show what I mean: https://imgur.com/a/w1LWQ

    My QQuickPaintedItem draws onto a QImage. It appears that when the QImage's height is greater than 2048 pixels, it gets blurry/resized. I wonder if this is related to the Pi's maximum texture size of 2048?

    Can anyone point me in the right direction for making my images not look like a blurry mess?

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Hi! Not sure what causes it, but your texture-size guess sounds reasonable. For the solution: Wouldn't it be easier anyway to replace the huge image with a listview?

      1 Reply Last reply
      0
      • S Offline
        S Offline
        StoatPatronus
        wrote on last edited by
        #3

        I had considered a listview, and cannot recall now why I decided against using it. I will investigate it again.

        1 Reply Last reply
        0
        • sneubertS Offline
          sneubertS Offline
          sneubert
          wrote on last edited by
          #4

          Just a guess, but I also had some issues displaying QQuickPaintedItem with
          large images and it turned out, that the memory split was at a low value.
          After changing it to e.g. 256 M, the Images got displayed correctly.

          S 1 Reply Last reply
          0
          • sneubertS sneubert

            Just a guess, but I also had some issues displaying QQuickPaintedItem with
            large images and it turned out, that the memory split was at a low value.
            After changing it to e.g. 256 M, the Images got displayed correctly.

            S Offline
            S Offline
            StoatPatronus
            wrote on last edited by
            #5

            @sneubert How big were your images? I tried setting the GPU memory to 256M, but it didn't make any difference.

            1 Reply Last reply
            0
            • sneubertS Offline
              sneubertS Offline
              sneubert
              wrote on last edited by
              #6

              I rendered pdf DIN A4 pages with 600 dpi via poppler

              S 1 Reply Last reply
              0
              • sneubertS sneubert

                I rendered pdf DIN A4 pages with 600 dpi via poppler

                S Offline
                S Offline
                StoatPatronus
                wrote on last edited by
                #7

                @sneubert Wow that's pretty big. Do you have any other tips for getting good quality? Like maybe the format used for QImage?

                1 Reply Last reply
                0
                • sneubertS Offline
                  sneubertS Offline
                  sneubert
                  wrote on last edited by
                  #8

                  Sorry i´m just using the QImage generated by poppler. I have no control about the generator.

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt
                  • Unsolved