Set background image to a WebView containing local html (file) in Qt/QML


import bb.cascades 1.2

Page {

Container {

verticalAlignment: VerticalAlignment.Fill

horizontalAlignment: HorizontalAlignment.Fill

background: backgroundImagePaint.imagePaint

attachedObjects: [

ImagePaintDefinition {

id: backgroundImagePaint

repeatPattern: RepeatPattern.Fill

imageSource: "asset:///images/webview.png"

}

]

ScrollView {

WebView {

objectName: 'webView'

settings.background: Color.Transparent

}

}

}

}

Advertisements
Posted in Programming | Leave a comment

First post

Hooray, it’s alive!

Posted in Uncategorized | Leave a comment