Home > other >  What is the difference between QTableWidget in cell with the item
What is the difference between QTableWidget in cell with the item

Time:09-30

What is the difference between QTableWidget in cell with the item

CodePudding user response:

Documentation of these two functions:
QTableWidget: : setCellWidget (int row, int column, QWidget * widget)//set form a certain line as QWidget
QTableWidget: : setItem (int row, int column, QTableWidgetItem * item)//Settings form a line a column content for QTableWidgetItem
There are these two functions:
QTableWidget: : setCurrentCell (int row, int column, QItemSelectionModel: : SelectionFlags command)//using the cell to have ranks
QTableWidget: : setCurrentItem (QTableWidgetItem * item, QItemSelectionModel: : SelectionFlags command)

Didn't find the definition of the cell, but according to the above suggests:
Cell is the form of a certain line column - container
The contents of the item is a certain line column -- what container loading, is likely to be one of the many things (such as buttons, character, etc.)
The item and the setCellWidget widget is the same thing,
The content of the similar pointer and pointer to it
  • Related