Qt6 topics merged with General

QWidget transparency rendering

  • Hello All,

    I'm facing a weird probem. I have a form with some widget (QLabel) and trying to render them into a QImage with their background transparent.

    I got the transparent background but the antialiased text is computed with the alias alpha, giving some junk on the edge : Tje text is written in white and the edge let appear some gray to black antialias ...
    I tryed with a QPainter with CompositionMode_Source, With WA_transluscent an other optons I can't get a working sample with antialias computed in alpha channel only

    Any help ?


Log in to reply