QTableView Select Color를 투명으로 지정할 수 있는 방법이 있나요?
글쓴이: kjh27814 / 작성시간: 수, 2013/12/04 - 9:05오전
안녕하세요.
개발 중에 궁금한 사항이 있어 질문 드립니다.
TableView에서 어떤 아이템을 클릭하면 해당 아이템의 정보를 가지고 특정한 동작을 하게 만들었습니다.
그런데 이 아이템들이 각각 BackgroundColor를 갖고 있어서 Select Color 때문에 식별이 잘 안되는 경우가 발생합니다.
선택한 아이템을 기반으로 동작하는 함수가 있기 때문에 No Selection 속성은 사용할 수가 없습니다.
구글링을 해보니 StyleSheet에 대해 나와있길래 적용해 보았습니다만 Alpha Channel 값을 0으로 주면 기존에 TableView 위에 새하얀색으로 덮어씌어지더군요.
결과적으로 Select 상태는 갖고 있되 Select Color를 투명하게(하얀색이 아닙니다.) 지정하는 방법을 알고 싶습니다.
여러분들의 답변 부탁드리겠습니다.
감사합니다.
Forums:
해결 했습니다.
http://www.qtforum.org/article/34125/disable-qtablewidget-selection-color.html
위 링크 적용해도 안 됐었는데 제 코드에 맞게 약간 조정하니까 잘되네요!
댓글 달기