Programming/qt
qt widget 에서 배경화면 스타일 시트 적용 안될 경우
구차니
2026. 5. 20. 12:17
antigravity 가지고 물어보니 이거 하나 넣으라니 정말 되네.
| Widget::Widget(QWidget *parent) : QWidget(parent) , ui(new Ui::Widget) { ui->setupUi(this); setAttribute(Qt::WA_StyledBackground); } |
| Qt::WA_StyledBackground 93 Indicates the widget should be drawn using a styled background. |
[링크 : https://doc.qt.io/qt-6/qt.html]
[링크 : https://runebook.dev/ko/docs/qt/stylesheet-reference]
QWidget은 원래 배경 색상만 지원하도록 만든 클래스인가 보네..
