Skip to content
Advertisement

Tag: qtablewidget

How to disable selection highlighting in a QTableWidget

I have a QTableWidget with a disabled setSelectionMode (QTableWidget::NoSelection) and the QTableWidgetItems I fill in don’t have the Qt::ItemIsEditable flag. Nevertheless, a cell that has been clicked gets some kind of cursor (the black line at the bottom in my case): How can I disable this “cursor”? Answer Does this help? To elaborate a bit: the appearance of the items

Advertisement