开发者

Is it possible to have a QMaemo5ListPickSelector which displays images as items?

开发者 https://www.devze.com 2023-01-04 19:55 出处:网络
I wanted to know if its possible to have a QMaemo5ListPickSelector but one which displays rectangular images as list items instead of text ? Is this possible ? If not, is there any other list-like obj

I wanted to know if its possible to have a QMaemo5ListPickSelector but one which displays rectangular images as list items instead of text ? Is this possible ? If not, is there any other list-like object in Qt which can show images as items instead of text ?开发者_StackOverflow中文版


You can access list view using QMaemo5ListPickSelector::view() and set item delegate for this view using QAbstractItemView::setItemDelegate(). In delegate item's visual presentation is pretty much unlimited. See Star Delegate example to get into the details of delegate's implementation http://doc.qt.nokia.com/qt-maemo/itemviews-stardelegate.html

0

精彩评论

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

关注公众号