Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
OSX 10.8.4 and artifacts with WA_TranslucentBackground & FramelessWindowHint
Chestnut last edited by
Prior to switching to QT5.1 I was getting artifacts on Windows. Since switching I'm getting artifacts on OSX :( I see lots of threads and bugs on this, but nothing that details the problems I'm currently seeing on OSX. In my app I have QWidget that is WA_TranslucentBackground & FramelessWindowHint. It hosts a QFrame with a nine-slice image with rounded corners and gradient to transparent at the edges. It looks terrible on Mac. But I'm reproducing (intermittently and with random severity) the artifacts with the simplified code below:
int main(int argc, char *argv)
QApplication a(argc, argv);
QWidget* container = new QWidget(); container->setWindowFlags(Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint | Qt::NoDropShadowWindowHint); container->setAttribute(Qt::WA_TranslucentBackground, true); QLabel* label = new QLabel("Artifacts around me", container); container->show(); return a.exec();
Any suggestions for a workaround or QT patch?
Did you check the "bug report system":http://bugreports.qt-project.org to see whether it's a known problem ?
If not, you could consider creating a new report with this minimal example.
grizzancs last edited by
I successfully removed my artifacts via
QPainter painter(this); painter.setCompositionMode(QPainter::CompositionMode_Clear);