문제

enter image description here

Hello! I wonder if there is a way of making such kind of table with combined cells using Qt.

Any advices?

도움이 되었습니까?

해결책 2

As RobbieE said in comments QTableView::setSpan() function does this job very well!

다른 팁

You can use QGridLayout, add QFrames and set the rowSpan and columnSpan of each item to group cells. You will have to come up with your own controller, though, for applying data to the cells.

enter image description here

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top