Quote Originally Posted by lovelyld View Post
See from the left part picture, the child content is hided, I need adjust the column width to show out the child content.

So I want to know how to show the whole content of child without adjust the column width.

Untitled.jpg
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);