background-color: rgb(0, 170, 255);border: 1px solid black;border-radius: 15px;
C++ (Qt)#include <QApplication>#include <QFrame>#include <QVBoxLayout> int main(int argc, char *argv[]){ QApplication a(argc, argv); QWidget widget; QVBoxLayout* centralLayout = new QVBoxLayout(&widget); widget.setWindowFlags(Qt::FramelessWindowHint); widget.setAttribute(Qt::WA_TranslucentBackground); QFrame* frame = new QFrame(&widget); frame->setMinimumSize(100, 100); frame->setStyleSheet("background-color: rgb(0, 170, 255); border: 1px solid black; border-radius: 15px;"); centralLayout->addWidget(frame); widget.show(); return a.exec();}
C++ (Qt)void QWidget::setMask ( const QBitmap & bitmap )