hi @jerkymotion,
showLabel
->setText
(QString::number(imgLabel
->x
())+"," +QString::number(imgLabel
->y
()));
showLabel->setText(QString::number(imgLabel->x())+"," +QString::number(imgLabel->y()));
To copy to clipboard, switch view to plain text mode
did u try the above code?
@ready,
come on .......somebody must have Idea how to do this....
I have already recieved x-cordinate from mouseevent....in QLabel ...
I want to do the reverse process....i.e....provide....coordinate value to qlabel and show the position in Qlabel(just to indicate)
provide coordinate value to qlabel means you want to move the qlabel?
I want to only show position in Qlabel whenever I provide co-ordinate value from line edit
imgLabel->move(x,y);
you need to get the x, y value from your lineedit.
hope it helps,
Bala
Bookmarks