获取QPushButton背景颜色_qpushbutton 颜色-CSDN博客

网站介绍:文章浏览阅读4.8k次,点赞2次,收藏14次。QColor buttonBackgroundColor(QAbstractButton *button){ QColor bgColor(0,0,0); if (button) bgColor = button->palette().color(QPalette::Background); return bgColor;}_qpushbutton 颜色