Home > Mobile >  Tableview how to add images in the cell
Tableview how to add images in the cell

Time:09-30

Dear bosses, tableview how to add images to the cell???????
After and add images, how to add controls to the location on the cell (such as text boxes, button)?




Trouble will give a detailed tutorial

CodePudding user response:

QLabel * pLabel=new QLabel ();
PTableView - & gt; AddCell (row, column, pLabel);
From memory, playing interface name a little can't remember, you can try,
Put the picture you put the also is according to the above method, just put the picture on the lable controls displayed on add to the cell,

CodePudding user response:

That there are several kinds of methods: https://www.iteye.com/blog/qimo601-1538364

CodePudding user response:

reference 1st floor _skytrails response:
QLabel * pLabel=new QLabel ();
PTableView - & gt; AddCell (row, column, pLabel);
From memory, playing interface name a little can't remember, you can try,
Put the picture you put the also is according to the above method, just put the picture on the lable controls on display to add to the cell,

Thank you very much, just give it a try you can write
  •  Tags:  
  • Qt
  • Related