Of-course, what you said is correct. I have used a tooltip which shows the text in the lineedit at any time(when mouse is placed over it). well, connecting a scrollbar is just a requirement and now, tooltip is its enhancement.