PDA

View Full Version : ScrollArea:AutoScroll to setfocus'ed control



BalaQT
21st October 2009, 16:45
hi,
im using QScrollArea in a fixed region to scroll.
The Fixed window size : 320 x 240
There are totally 30 LineEdits are placed in this window.
(say 10 LineEdits are visible ,without scrolling)
At the bottom im having a button.
when the button was clicked , 14th LineEdit will be focused using the setfocus

My Question is how to auto scroll to the LineEdit which got focused (in mycase it is 14th LineEdit?

how to autoscroll to the focused control?

Thanks
Bala

BalaQT
22nd October 2009, 07:39
Can i set value for vertical scroll bar in QScrollArea?

Thnks
Bala

BalaQT
22nd October 2009, 13:14
how to use ensurevisible() for my problem?

Bala

BalaQT
23rd October 2009, 12:54
any solutions??

Bala

BalaQT
26th October 2009, 06:39
ensureWidgetVisible solved my problem

Thnks to wysota for his great support