jsmith
21st September 2009, 06:16
Hi,
I am developing one application. Here i should be able to drag and drop labels. For that i have taken qt examples draggable text. It is working fine when zoomfactor1. But when zoomfactor is greater than 1 i am calculating new Positions and moving labels according to new Position. It is also working fine when position is positive values. but for negative positions i am not able to get pointer to label by this line of code. Can anyone help me. It is urgent. Thanks in advance.
QLabel *child = static_cast<QLabel*>(childAt(Pos));
I am developing one application. Here i should be able to drag and drop labels. For that i have taken qt examples draggable text. It is working fine when zoomfactor1. But when zoomfactor is greater than 1 i am calculating new Positions and moving labels according to new Position. It is also working fine when position is positive values. but for negative positions i am not able to get pointer to label by this line of code. Can anyone help me. It is urgent. Thanks in advance.
QLabel *child = static_cast<QLabel*>(childAt(Pos));