PDA

View Full Version : QTableWidget columns size



^NyAw^
26th March 2010, 11:00
Hi,

I'm not able to found how to resize the column size to fit the full content of the collumns. When double clicking in the middle of two column header items the column auto resize to fit the column contents. I want to fill some table values by code and resize it automatically.

Thanks,

aamer4yu
26th March 2010, 12:33
QTableView::horizontalHeader

QHeaderView::setResizeMode(QHeaderView::ResizeToCo ntents)

Hope you get the idea :rolleyes: