PDA

View Full Version : How to set Width and Height of QTableWiget's Column and Row .



vaibhav
25th February 2011, 09:56
I am making use of QTablewidget.
I want to have row height same as the widget->height which is added using table->setCellWidget();

Same goes with Column.Column width same as widget->width.

How should i obtain this without actually getting the width and height from the widget and then setting it individually.

Any help would be appreciated .
Thanks.

sudhansu
25th February 2011, 11:46
tbalewidget->setColumnWidth();
tbalewidget->horizontalHeader()->setFixedHeight();