QTreeWidgetItem *cTreeWidgetItem = .... ;int cIntCol=2;//номер колонкиint rowHeight=25; //высота в пикселяхQSize tmpSize;tmpSize=cTreeWidgetItem->sizeHint(cIntCol); tmpSize.setHeight(rowHeight);cTreeWidgetItem->setSizeHint(cIntCol,tmpSize);
C++ (Qt)void CFileBrowser::setStretchColumnsWidth(){ resizeColumnToContents(0); for(int i = 1; i < header()->count(); i++) header()->setResizeMode(i, QHeaderView::Stretch);}