QTableView resized automatically in a QVBoxLayout
-
Hello,
i have a little problem : i add a QTableView in a QVBoxLayout which is in a QScrollArea. But the QTableView is resized automatically. Indeed the table displays only 1 row together while i want the table displayed completly.
Thanks,
Octani
-
Hi!
If I understand correctly, you want to display table view full of cells as in for example in M$ Excel?
You can user function "QTableWidget::setRowCount(int rows)":http://qt-project.org/doc/qt-5.0/qtablewidget.html#rowCount-prop and "QTableWidget::setColumnCount(int columns)":http://qt-project.org/doc/qt-5.0/qtablewidget.html#columnCount-prop .Regards,
Jake -
Ok thanks you Jake, but i managed to resolve my problem. In fact, i don't put the table in the good layout because in my program there are several levels of layout. Now it's right !