문제

I am using Pyqt4 for GUI programming in python. How can I hide vertical or horizontal lines in QTableWidget?

도움이 되었습니까?

해결책

Try:

yourTableWidget.setShowGrid(False)

Unfortunately there seems to be no good way to do this via Stylesheets. A workaround is to set gridline-color: the same as background-color:.

If you want to disable just vertical or horizontal lines, turn the grid off in code, and draw the borders per item with the QTableView::item selector.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top