qtablewidget
how to make a cell in a QTableWidget read only?
i have the following code defining the gui of my app class Ui (object): def setupUi(): self.tableName = QtGui.QTableWidget(self.layoutWidget_20)[详细]
2023-04-12 19:04 分类:问答QT, QTableWidget: Changing Items with the cellChanged()-signal
I am using a QTableWidget. On the cellChanged()-signal I add or update a row in a sqlite databas开发者_运维知识库e. After executing my SQL statements i want to add a button/CellWidget to an item in th[详细]
2023-04-06 13:29 分类:问答HowTo draw border for QTableWidget row?
I\'m trying to make a border for rows in QTableWidget with different ways, but all solutions don\'t respond my requirements. All that I want, is to draw a rectangle around a whole row. I had try QStyl[详细]
2023-04-04 15:39 分类:问答QtDesigner & PySide: QTableWidget don't get accessible
I made a form in QtDesigner. This form gets loaded from PySide with help of the function widget = loader.load(file, parent)[详细]
2023-04-01 21:37 分类:问答QTableWidgetItem.itemAt(pos) always returns 0 on contextMenu request
I have a slot which creates a context menu given a point.However, no matter which method I use to return the position from the point, table->itemAt(pos) always returns 0.Is there any way to print out[详细]
2023-03-30 17:03 分类:问答How to disable QTableWidget scrolling to selected cell?
Currently, if the user clicks on a cell that is only partially visible开发者_StackOverflow社区, the window automatically scrolls over so that the cell is fully displayed. Is there any way to stop the[详细]
2023-03-30 15:14 分类:问答QComboboxes in a QTableWidget
I would like one of the cells in a开发者_如何转开发 table to be a QComboBox. However, I don\'t want them displayed as such all the time, only when a user selects that cells. Are there any more conveni[详细]
2023-03-29 16:48 分类:问答QTableWidget: different styles in *one* QTableWidgetItem?
Is it possible to have a two-line element in a cell (QTableWidgetItem) of a QTableWidget with different styles per line? I want to have the first line bold and the second line not bold. Or can I add t[详细]
2023-03-15 02:07 分类:问答QTableWidget - context menu only for specific cells/columns
I am using a QTableWidget for displaying data. I开发者_如何转开发 know that I can use the addAction method to add a context menu. How can I limit the context menu to only specific cells or columns? ad[详细]
2023-03-07 13:40 分类:问答QTableWidgetItem shrinking
I have an issue usign QTableWidgetItem. I normally use the QTableWidget like this this->setItem(i, j, new QTableWidgetItem());[详细]
2023-02-28 09:32 分类:问答