Important: Please read the Qt Code of Conduct -

QQuickWidget grabFramebuffer() return a QImage without Alpha

  • Hi, I need to get a QImage with a transparent background from a QQuickWidget.
    The QQuickWidget display correctly with a transparent background, but when I use grabFramebuffer() the returned QImage has a black background and no Alpha Channel.

    I attached a picture to show the result, bottom part is the QQuickWidget, top part is the QImage. I would appreciate if someone could tell me if there is a way to get a transparent background. Thank you!


  • Hi @JCOrlando
    Can you post some minimal working code and your image so that it can be tried out?

Log in to reply