ANd why do you need QTableWidget? If you want to place several QLineEdits in a row use QHBoxLayout. In more than one row use QGridLayout.