PDA

View Full Version : Q3ScrollView



veda
17th November 2007, 07:47
Hello All,,

I am porting Q3scrollview to QScrollArea...


There are few methods in Q3scrollview contentsWidth(), visibleWidth() in Qt3,

where as these methods are removed in Qt4... How to get the same in Qt4.

jpn
17th November 2007, 08:23
// scrollView->contentsWidth();
scrollArea->widget()->width();




// scrollView->visibleWidth();
scrollArea->viewport()->width();

veda
19th November 2007, 06:29
Thanks JPN,,

I need to scroll my scrollbar from one point to other as my cursor jump from one
text edit to other

In Qt3 I have used setContentsPos whats the alternative in Qt4 ,
and also for resizeContents.