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
Developer
Posts: 22
Registered: ‎03-28-2014
My Device: Blackberry Z10
My Carrier: AT&T
Accepted Solution

Math and Scientific equations in QML

I would like to create an application for Blackberry 10 that requires displaying equations. Is MathML or LaTeX currently supported in QML or is there an alternative way to display Math Equations? I do not like to display equations using JPEG/GIF/PNG images

Developer
Posts: 257
Registered: ‎01-08-2013
My Device: Z10 LE
My Carrier: SiMobil

Re: Math and Scientific equations in QML

Well BlackBerry 10 browser supports MathML if I am correct, mabye display with WebView (if it even works there)?

Developer
Posts: 22
Registered: ‎03-28-2014
My Device: Blackberry Z10
My Carrier: AT&T

Re: Math and Scientific equations in QML

I have a question about webview. Can I create html files and place them in development folder and show them in webview. Asking this given that I do not have a server where I can host my content

Developer
Posts: 257
Registered: ‎01-08-2013
My Device: Z10 LE
My Carrier: SiMobil

Re: Math and Scientific equations in QML

If you look at WebView documentation you can see you can load it locally

 

WebView {
    id: webViewUrl
    url: "local:///assets/test.html"
}

 

 

Developer
Posts: 22
Registered: ‎03-28-2014
My Device: Blackberry Z10
My Carrier: AT&T

Re: Math and Scientific equations in QML

Cool. This helps, Thank you

Highlighted
Developer
Posts: 257
Registered: ‎01-08-2013
My Device: Z10 LE
My Carrier: SiMobil

Re: Math and Scientific equations in QML

MathML doesn't seem to work in a WebView unfortunately