PDA

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



vaibhav
25th February 2011, 10: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, 12:46
tbalewidget->setColumnWidth();
tbalewidget->horizontalHeader()->setFixedHeight();