[RQt-devel] How to control a scroll bar from command line?

Michael Lawrence lawrence.michael at gene.com
Tue Apr 12 07:22:14 CEST 2011


On Mon, Apr 11, 2011 at 10:03 PM, Tengfei Yin <yintengfei at gmail.com> wrote:

> Hi
>
> I came across a problem, when I zoom in a view by using view$scale(), it
> end up with a vertical or horizontal scroll bar, so my question is that, how
> to move this viewport to a specific spot on the view without using the mouse
> and keep the same scale. I mean is there a convenient way to control the
> scroll view directly from command line, I tried centenOn() on the view
> object, it doesn't work, looks like the center of the view never moved and
> only the viewport visible window is changed.
>
>
Could you please say this another way? centerOn() should scroll the viewport
so that the given point is centered, if possible. Note that it takes scene
coordinates.



> Thanks
>
> Tengfei
>
> --
> Tengfei Yin
> MCDB PhD student
> 1620 Howe Hall, 2274,
> Iowa State University
> Ames, IA,50011-2274
> Homepage: www.tengfei.name
>
>
>
> _______________________________________________
> Qtinterfaces-devel mailing list
> Qtinterfaces-devel at lists.r-forge.r-project.org
>
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/qtinterfaces-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/qtinterfaces-devel/attachments/20110411/d74ac06a/attachment.htm>


More information about the Qtinterfaces-devel mailing list