On Friday 19 December 2008, Witteveen, Arnt wrote:
> theWidget1->setSizePolicy(QSizePolicy::Minimum,QSizePolicy::Minimum);
> theWidget1->adjustSize();
>
> theListView->setItemWidget(theListView->item(1), theWidget1);
> theListView->setItemWidget(theListView->item(2), new
> QPushButton(tr("ttt")));
>
> And only the pushbutton shows, the other widget doesn't. (I tried to
> replace theWidget1 with a 'MyWidget' from
> http://doc.trolltech.com/4.4/tutorials-tutorial-t4.html but that didn't
> help either.)
You could try to change the size hint of the item to be the size hint
returned by theWidget1, but it might only get you so far.
Incidentally, you might get more answers and suggestions on this topic if you
ask on qt-interest. This mailing list is generally monitored by people who
are tracking down issues with the latest Qt 4 releases.
David
--
David Boddie
Senior Technical Writer
Nokia, Qt Software
_______________________________________________
Qt4-preview-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback