[Qt-interest] Scrolling QScrollArea with mouse near borders?

Thomas Dähling t.daehling at googlemail.com
Mon Mar 30 11:47:42 CEST 2009


Hi,

my first approach would be to reimplement the MouseMove event handler
to check at which coordinates the mouse is. Then decide upon the
coordinates whether you want to scroll or not, and if you do want to
scroll you decide the direction.

/Thomas

2009/3/30 Soboljew, Patrick <Patrick.Soboljew at zwick.de>:
> Hi all,
>
> I have a question concerning QScrollArea:
> I want the scroll area to scroll automatically into the corresponding
> direction if I move the mouse cursor to the border of the scroll area.
> Does anyone know how to achieve this?
>
> Thanks and Regards
> Patrick
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>



More information about the Qt-interest-old mailing list