PDA

View Full Version : QLabel and Mouse pointer Issue



newb
24th July 2010, 09:21
hi...

i have placed a label as movable item on the widget..

when drgging the label, the mouse pointer goes right side of the label ...

why it behaves like that...

is there any way to keep the mouse pointer to the center of the label

Thank you

Lykurg
24th July 2010, 09:24
? Can you show us some code?

newb
24th July 2010, 09:39
this is how i move the label
void SliderBar::mouseMoveEvent( QMouseEvent *Event )
{
StartIcon->move( Event->pos().x (),mySliderRect.y () );


}

newb
24th July 2010, 11:31
someone pls help me up