QToolButton * upb = new QToolButton(qp, _("Up"), "", this, SLOT(up()), this); upb->show();
QToolButton * downb = new QToolButton(qp, _("Down"), "", this, SLOT(down()), this); downb->show(); am I right in thinking that this does not leak since the "this" takes owenership of the pointer? Could we just write this as (new QToolButton(qp, _("Down"), "", this, SLOT(down()), this))->show(); ? -- Lgb