View Single Post
Posts: 82 | Thanked: 214 times | Joined on Jan 2010 @ Cape town
#3
Originally Posted by marxian View Post
Setting the HTML worked for me (in the QMLViewer), but I needed to insert a <font color='white'> tag:

Code:
import QtQuick 1.0
import QtWebKit 1.0

WebView {

    width: 800
    height: 480
    html : "<html><body><font color='white'>I like pie<br><br><br>piepiepie!</font></body></html>"
}
That seems so obvious - yet I would've never have gotten it... I guess because in QML most things defaulted to white, I figured the webview would've done the same! Haha, I should go rest for a bit...

Many thanks