开发者

Show a download list with qt4

What is the best way to show a list of downloads using QT4?

1 QListWidget

2 QTreeWidget

3 QTabl开发者_高级运维eWidget

Thanks


It depends on how much functionality you want. If you just want to simply list the filenames, use a QListWidget. If you want to list other things like progress, filesize, etc. then you may want to use a QTableWidget. If you want to be able to group downloads under different categories, you can use the QTreeWidget, which will also allow for multiple table cells per row like the QTableWidget.

If you want something fancier like the firefox downloader, you may have to create an item delegate to handle the drawing yourself.


Use the model-view-controller widgets.

QListView
QTableView
QTreeView
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜