Hi, thanks for your reply. I used the setSectionResizeMode() in the follow Capture.PNGway. The first column width will adjust automatically. But what I want is, the column width of the parent item not change, just change the child item column width. Like this picture show. The child content length is longer than the parent column width. How can I achieve this?
t->header()->setSectionResizeMode(QHeaderView::ResizeToContent s);





Reply With Quote

Bookmarks