Qt - render QFrame with image as background without using WA_TranslucentBackground
问题 I need to set a QFrame with a background image: http://imgur.com/RnSghvV. This is what I tried: setAutoFillBackground(true); setWindowFlags(Qt::FramelessWindowHint); setStyleSheet("background: transparent;"); QPalette p = this->palette(); p.setBrush(QPalette::Base, QPixmap("ipad.png")); this->setPalette(p); This is what I am getting: As you can see, there is an annoying black frame along the edges, which I want to remove, and view just the image. How do I do that? P.S, it is possible to make