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

New Contributor
Posts: 8
Registered: ‎03-06-2012
My Device: Playbook, 9900
My Carrier: Telenor

Problems with webview

Hi all,


Im having some problems with the webview and im hoping that someone here could have an idea of whats missing.


Im creating a webview from code (not using qml at all) and it crashes when i touch the display. Sometimes it works for like 5 minutes untill it crashes, and sometimes it crashes instantly.


This is the exception in the disassembly.

; UNDEFINED instruction: 0x4798699b


Is there a function or slot i need to implement ? The memory address is always the same. And is there some smart way to debug this ?


Heres the code for setting up the page:


_rootContainer = Container::create();

_webView = WebView::create();


_scrollView = ScrollView::create().content(_rootContainer);




Posts: 196
Registered: ‎03-04-2013
My Device: BB Z10
My Carrier: Rogers

Re: Problems with webview

[ Edited ]

Try it this way:


Testing::Testing(bb::cascades::Application *app)
: QObject(app)
    Container *rootContainer = Container::create();
    WebView *myWeb = WebView::create();
    ScrollView *rootScroll = ScrollView::create(myWeb);
    Page *page = new Page();


Scene graph should be more like:

Container (anything really)
    ---- ScrollView
             ---- WebView


You want to use the ScrollView for the WebView and not a Container that has the WebView...  Unless you have some specific reasons for having ScrollView - Container - WebView ....