👨🏼💻개발/PyQt
PyQt - 테이블 헤더 배경 색 변경
Janger
2022. 11. 8. 11:53
728x90
self.table_invest = QtWidgets.QTableWidget(self.tab)
self.table_invest.setStyleSheet('QTableWidget{\ncolor:black;}\nQHeaderView::section{background-color: rgb(23,33,43); };')
참고:
https://forum.qt.io/topic/87371/how-to-change-qtablewidget-header-color-and-selection-color
How to change QTableWidget header color and selection color ?
Solved! tableWidget->setStyleSheet("QTableView::item:selected { color:white; background:#000000; font-weight:900; }" "QTableCornerButton::section { background-color:#232326; }" "QHeaderView::section { ...
forum.qt.io
728x90