[Qt-interest] How to bring the scrollBar from the starting position of the Window.

Kamakshi Sivaraman Kamakshi.Sivaraman at lntinfotech.com
Mon May 11 14:50:10 CEST 2009


Hi all,

Please help me, I unable to bring the scrollbars from the starting 
position of the window, my window is of type QGraphicsView
and I am using following code to bring the scroll bars from starting of 
window but its not working, the scroll bars still shows from the middle 
part of window 
after scrolling the starting part of window.

The code snippet is follows :

view->horizontalScrollBar()->setTracking(true);
view->horizontalScrollBar()->setSliderPosition(0);
view->horizontalScrollBar()->setMinimum(0);
view->verticalScrollBar()->setTracking(true);
view->verticalScrollBar()->setSliderPosition(0);
view->verticalScrollBar()->setMinimum(0);

It still showing the same.The QGraphicsView is as MDI child window of 
MainWindow and I applied the same code for MdiArea also still the 
scrollbar displaying
from the middle of the window the starting part of window is already 
scrolled above.

Please suggest.


Thanks & Regards,
S.KAMAKSHI
Larsen & Toubro Infotech Limited
Whitefield,
Bangalore -560066

Larsen & Toubro Infotech Ltd.
www.Lntinfotech.com

This Document is classified as: 

L&T Infotech Proprietary   L&T Infotech Confidential   L&T Infotech 
Internal Use Only   L&T Infotech General Business 

This Email may contain confidential or privileged information for the 
intended recipient (s) If you are not the intended recipient, please do 
not use or disseminate the information, notify the sender and delete it 
from your system. 

______________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090511/a85a180a/attachment.html 


More information about the Qt-interest-old mailing list