qt - QScollArea doesn't autoscroll when dragging inside it -


i have widgets inside qscrollarea , i'm dragging between these widgets, problem qscrollarea doesn't scroll when i'm dragging inside it, if want drag between widget widget b , widget b not visible on viewport, qscrollarea doesn't automatically scroll when mouse moves edge of viewport.

subclass scroll area, , add in 1 of functions below.

http://qt-project.org/doc/qt-4.8/qwidget.html#mousepressevent

http://qt-project.org/doc/qt-4.8/qwidget.html#dragmoveevent

http://qt-project.org/doc/qt-4.8/qwidget.html#dragleaveevent // need one

when dragmoveevent reaches edge of widget, or when dragleaveevent happens, detect edge is, or left at, , scroll area in direction.

hope helps.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -