라인

    pyqt QLabel pen, brush로 테두리 그리기

    label = OutlinedLabel(self.test.format("0"), alignment=Qt.AlignCenter, textFormat=Qt.RichText) label.setPen(QColor(255, 249, 177)) label.setBrush(QColor(171, 171, 173)) label.setStyleSheet("QLabel{background-color: #dbdbdb; border: solid; font-family: 나눔스퀘어; font-size: 32pt; font-weight: bold;}" "QLabel:hover{background-color: #2d2801;}") self.ui.horizontalLayout_2.addWidget(label) class Outline..