[Qt-interest] [Fwd: Re: Display list of arbitrary widgets ?]
Stephen Collyer
scollyer at netspinner.co.uk
Fri Dec 11 11:19:28 CET 2009
2009/12/10 Sean Harmer <sean.harmer at maps-technology.com>
>
> QListWidget::setItemWidget( QListWidgetItem*, QWidget* )
>
> http://doc.trolltech.com/4.6/qlistwidget.html#setItemWidget
>
Thanks. I seem to have overlooked that. However, I note that it says that it
is restricted to the display of "static" content; what counts as static
content in this context ? My custom widget will contain a QLCDNumber,
displaying a time ticking away, so in some sense it won't be "static".
Will I have to go the QListView/QItemDelegate route ? (which seem to
overcomplicate the whole requirement - I'll presumably have to screw around
with QModelIndex'es etc instead of the currentRowChanged() stuff ...)
--
Stephen Collyer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091211/38a82915/attachment.html
More information about the Qt-interest-old
mailing list