Qt如何設置界面透明

一、設置主窗體透明,可是窗體上的控件不透明:css setAttribute(Qt::WA_TranslucentBackground, true); void paintEvent(QPaintEvent *event) { QPainter painter(this); painter.fillRect(this->rect(), QColor(0, 0, 255, 80));
相關文章
相關標籤/搜索