Qt-interest Archive, March 2008
PaintCell problem
Message 1 in thread
hi I have derived my own class from QListviewItem and re-implemented
PaintCell().
But it is not working.It is not called.
here is the code
paintCell(QPainter *p, QColorGroup &cg,int column,int width ,int alignment)
{
QColorGroup _cg(cg);
QColor c = _cg.base();
_cg.setColor(QColorGroup::Base, Qt::red);
QListViewItem::paintCell( p, _cg, column, width, alignment );
_cg.setColor( QColorGroup::Base, c );
}
--
[ signature omitted ]
Message 2 in thread
On Tuesday 11 March 2008 07:42:12 Mautushi Paul wrote:
> hi I have derived my own class from QListviewItem and re-implemented
> PaintCell().
> But it is not working.It is not called.
>
> here is the code
> paintCell(QPainter *p, QColorGroup &cg,int column,int width ,int
> alignment) {
>
> QColorGroup _cg(cg);
> QColor c = _cg.base();
> _cg.setColor(QColorGroup::Base, Qt::red);
> QListViewItem::paintCell( p, _cg, column, width, alignment );
> _cg.setColor( QColorGroup::Base, c );
> }
is that qt3? for qt4 you use delegates
--
[ signature omitted ]
Message 3 in thread
it qt3..
where shall i call paintCell method()?
thanks in advance
On 3/11/08, Arvid Ephraim Picciani <aep@xxxxxxxxxxxxxxx> wrote:
>
> On Tuesday 11 March 2008 07:42:12 Mautushi Paul wrote:
> > hi I have derived my own class from QListviewItem and re-implemented
> > PaintCell().
> > But it is not working.It is not called.
> >
> > here is the code
> > paintCell(QPainter *p, QColorGroup &cg,int column,int width ,int
> > alignment) {
> >
> > QColorGroup _cg(cg);
> > QColor c = _cg.base();
> > _cg.setColor(QColorGroup::Base, Qt::red);
> > QListViewItem::paintCell( p, _cg, column, width, alignment );
> > _cg.setColor( QColorGroup::Base, c );
> > }
>
> is that qt3? for qt4 you use delegates
> --
> best regards/Mit freundlichen Grüßen
> Arvid Ephraim Picciani
>
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>
--
[ signature omitted ]