Answer the question
In order to leave comments, you need to log in
How to solve background layering problem in QLabel?
Hello. Task: place images with transparent background (ARGB32) on QLabel. The Label itself must be transparent.
Here is a piece of code that describes my method for solving this problem:
QWidget root;
root.setStyleSheet("background:transparent;");
QLabel label(&root);
QImage img((uchar*)bitmap, w, h, QImage::Format_ARGB32);
label.setPixmap(QPixmap::fromImage(img));
Answer the question
In order to leave comments, you need to log in
Most likely the problems of the window manager that updated only part of the screen
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question