anupamgee
27th May 2009, 06:18
hi All,
I want to move my child widget on move of parent widget.I have tried move() child in moveEvent of parent. But movement of child is Delayed by parent's movement.
void parent::moveEvent(QMouseMoveEvent *event)
{
child->move(event->pos().x()-oldpos.x,event->pos().y()-oldpos.y);
}
How to move both the widget simultaneously.
thnx
I want to move my child widget on move of parent widget.I have tried move() child in moveEvent of parent. But movement of child is Delayed by parent's movement.
void parent::moveEvent(QMouseMoveEvent *event)
{
child->move(event->pos().x()-oldpos.x,event->pos().y()-oldpos.y);
}
How to move both the widget simultaneously.
thnx