Is there a "best" QImage::Format for Raspberry Pi?

  • I'm using Qt 5.8 and QtQuick for a Raspberry Pi-based project. I've written a custom QQuickPaintedItem that renders a QImage to draw some data on the screen. Is there a preferred format for the QImage to get the best performance out of the Pi?

    According to page 42 (Table 18) of, page 42 (Table18) there are several texture formats supported by the Pi's GPU.

    Since I'm not using transparency, would using QImage::Format_RGBX8888 in my Qt project be beneficial since it's supported by the GPU? I'm already generating the QImage in a separate thread to keep the GUI responsive, so I'm not really concerned about the performance, I'm just curious.

  • Lifetime Qt Champion


    You should benchmark the various values that seem to fit.

Log in to reply