Thanks Zlatomir !
I used your second method and it works well !!!

A last last question...is it possible to center my QTableWidget with that QVBoxLayout?
I want to do that because when I resize my window manually with a mouse, the QTableWidget stays align at the left.
Is there a similar function to
Qt Code:
  1. QTableWidget::setAlignement(Qt::AlignCenter)
To copy to clipboard, switch view to plain text mode 
that exists ?
I search the documentation, but couldn't find any easy way to do this