[Qt-interest] [Fwd: Re: Display list of arbitrary widgets ?]

Sean Harmer sean.harmer at maps-technology.com
Mon Dec 14 18:16:12 CET 2009


Hi,

On Friday 11 December 2009 14:57:56 Stephen Collyer wrote:
> 2009/12/11 Stephen Collyer <scollyer at netspinner.co.uk>
> 
> > 2009/12/11 Sean Harmer <sean.harmer at maps-technology.com>
> >
> >> > 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 ...)
> >>
> >> I am not sure without trying it but I will leave that for you ;-)
> >>
> >> Fair enough. I'll write the code and see if it AllGoesHorriblyWrong(tm).
> 
> Well, it all seems to go horribly wrong. QListWidget fails to render the
> widget correctly for some reason. I guess I'll have try the QListView
> approach.

Well the QGraphicsWidget approach seems easy enough. The attached example 
shows how. It should be easy enough to clean this up to make a generic 
WidgetList widget.

Cheers,

Sean
-------------- next part --------------
A non-text attachment was scrubbed...
Name: widgetlist.tar.bz2
Type: application/x-bzip-compressed-tar
Size: 4803 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091214/814ad0a1/attachment.bin 


More information about the Qt-interest-old mailing list