QDialog#CallReminderDialogbackground-color rgba20 25 291;border-radius20px;背景色生效圆角没有生效
您可以尝试在样式表中添加以下代码来为QDialog的CallReminderDialog设置圆角:
QDialog#CallReminderDialog {
background-color: rgba(20, 25, 29, 1);
border-radius: 20px;
border: none; /* 可选 */
}
请确保在设置样式表之前,已经为CallReminderDialog设置了正确的对象名称(object name)为"CallReminderDialog"。此外,您还可以尝试添加border: none;来确保没有边框干扰圆角效果。
如果圆角仍然没有生效,可能是由于其他样式规则或代码逻辑导致的。您可以检查是否有其他样式表或代码覆盖了圆角的设置。
原文地址: http://www.cveoy.top/t/topic/isu8 著作权归作者所有。请勿转载和采集!