Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
New Developer
vladest
Posts: 88
Registered: ‎06-16-2012
My Device: N950/E7/N808/N9/X7/BB10 Alpha
My Carrier: Kievstar

ScrollView issues

1st issue: calling scrollToPoint() cause scaling reset to 1 which is wrong afaik

2nd issue: how to call zoomToRect() from QML?

Qt/Symbian/Meego/BB10/Cascades developer
Please use plain text.
Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: ScrollView issues

If the resetting behaviour is wrong, make sure it's been reported as an issue in the issue tracker (maybe after checking that it's not already listed in the Known Issues list in the release notes).

As for zoomToRect(), since it's not marked Q_INVOKABLE, I can't see any way you'd be able to call it directly from QML. Instead, perhaps just as a stopgap define a slot in your C++ launcher code, as a wrapper for that routine, letting the QML pass in appropriate arguments.

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.