开发者

Is QListView right for me?

I've been having difficulty trying to find a Qt widget that will allow me to display a list with columns. From what I understand, QListView does indeed display list data, but it doesn't allow for programmers to add a list view header -- in fact, it appears the only widget that does allow one to display headers is QTreeView (which, quite frankly, is a pain in the arse to work with).

Qt certainly must offer a开发者_开发技巧n easy way to display a header and data organized by columns, no?

Thanks so much! --Dany.


What about QTableView or QTableWidget? You can make it look a little more like a list with columns by hiding the grid and the left header.


Straight from the QListView's docs:

This view does not display horizontal or vertical headers; to display a list of items with a horizontal header, use QTreeView instead.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜