QPainter::drawText ignores Alpha
General and Desktop
2
Posts
2
Posters
2.9k
Views
1
Watching
-
@ QColor color = QColor::fromRgb(charColors.at(curPos + spaceBoxesLeft));
color.setAlpha(50);
painter.setPen(color);
painter.drawRect(rect);
painter.drawText(rect, Qt::AlignVCenter | Qt::AlignCenter, textString.at(curPos + spaceBoxesLeft));@The text changes its colour and the rect changes colour and alpha.
How can I make the text to change its alpha as well?