View Single Post
marxian's Avatar
Posts: 2,448 | Thanked: 9,523 times | Joined on Aug 2010 @ Wigan, UK
#2
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>"
}


I think the problem is that you have not set the width and height properties of the rectangle, so it defaults to 0 * 0. You should set the rectangle to 800 * 480, and use anchors.fill: parent for the webView.
__________________
'Men of high position are allowed, by a special act of grace, to accomodate their reasoning to the answer they need. Logic is only required in those of lesser rank.' - J K Galbraith

My website

GitHub

Last edited by marxian; 2011-04-20 at 21:28.
 

The Following User Says Thank You to marxian For This Useful Post: