Home > Mobile >  Excuse me, QT4.8.7 tableView or tableWidget can set different agent for a single cell
Excuse me, QT4.8.7 tableView or tableWidget can set different agent for a single cell

Time:12-02

Excuse me, QT4.8.7 tableView or tableWidget can set different agent for single cell

Such as I have a 3 x 3 tableView, can set a line a list of cell agent for combox, the rest of the cell as LineEdit

CodePudding user response:

Set QTableView custom itemDelegate attribute,
According to the index of the row and column attribute Editor to create their own needs,

CodePudding user response:

1/f, bow quoted water response:
Settings QTableView custom itemDelegate attribute,
According to the index of the row and column attribute Editor to create their own need,


You mean, in the delegate according to different ranks to create widget?

CodePudding user response:

Try using QStanderdItem
  •  Tags:  
  • Qt
  • Related