QColor buttonBackgroundColor(QAbstractButton *button)
{
QColor bgColor(0,0,0);
if (button)
bgColor = button->palette().color(QPalette::Background);
return bgColor;
}
获取QPushButton背景颜色
最新推荐文章于 2024-05-18 09:15:12 发布
QColor buttonBackgroundColor(QAbstractButton *button)
{
QColor bgColor(0,0,0);
if (button)
bgColor = button->palette().color(QPalette::Background);
return bgColor;
}