0
QT TableWidget을 보유하고 있으며 그 값에 따라 열의 배경색을 변경하고 싶습니다. 나는 이런 식으로 뭔가를하고있는 모든 열 배경 변경할 수 있습니다 보인다QT TableWidget 헤더가 지정된 열의 배경색으로 변경됩니다.
tableWidget->horizontalHeader()->setStyleSheet("QHeaderView::section {background-color: red}");
을하지만 주어진 컬럼과 다를 수 있습니다 각 열 색상에 대한 색상을 변경하고 싶습니다. 누구나 이런 짓을 한거야?
도움이 될 수 있습니다. http://stackoverflow.com/questions/30847252/what-does-qheaderviewpaintsection-do-such-that-all-i-do-to-the-painter-before – AlexanderVX