ok, thanks for these answers.
I'm not English native so I have a few difficulties to read the documentation, sorry to bother you with my questions.
I read (though quite fast) the whole page regarding the QTextEdit class but I didn't find how to access/modify the contents of the text.

Regarding the size of the table, what I mean is that sometimes some blank zones appear, and sometimes there's a need to scroll to see the contents.
Here is my code (please tell me if/how I can make it better) :
Qt Code:
  1. int main(int argc, char *argv[])
  2. {
  3. QApplication a(argc, argv);
  4. QWidget *fenetre = new QWidget ();
  5. fenetre->setFixedSize(300,600);
  6. QTableWidget *table = new QTableWidget(3, 2, fenetre);
  7. table->setFixedSize(400,400);
  8. table->setEditTriggers(QAbstractItemView::NoEditTriggers);
  9. for (int row = 0; row < 3; row++)
  10. {
  11. for (int column = 0; column < 2; column++)
  12. {
  13. // set the special features of each item
  14. item->setText("item foogyfyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy");
  15. table->setItem(row,column,item);
  16. }
  17. }
  18. fenetre->show();
  19. return a.exec();
  20. }
To copy to clipboard, switch view to plain text mode 
If I do this :
Qt Code:
  1. QWidget *fenetre = new QWidget ();
  2. fenetre->setFixedSize(300,600);
  3. QTableWidget *table = new QTableWidget(3, 2, fenetre);
  4. table->setFixedSize(200,200);
To copy to clipboard, switch view to plain text mode 
I get a scrollbar ;
and if I do this :
Qt Code:
  1. QWidget *fenetre = new QWidget ();
  2. fenetre->setFixedSize(300,600);
  3. QTableWidget *table = new QTableWidget(3, 2, fenetre);
  4. table->setFixedSize(400,400);
To copy to clipboard, switch view to plain text mode 
or this
Qt Code:
  1. QWidget *fenetre = new QWidget ();
  2. fenetre->setFixedSize(300,600);
  3. QTableWidget *table = new QTableWidget(3, 2, fenetre);
  4. //table->setFixedSize(200,200);
To copy to clipboard, switch view to plain text mode 
I get blank zones

I guessed I'd have to do a new class to make the line count appear as well.
I have no idea how big this project is though.
Can you give me a hint ? I mean, if it takes 100 code lines to implement this feature, I will drop it. Can you help me to do it please ?

Thanks.