Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I just begun to lean the beta-Ubuntu-SDK.

I has an WebView.

I need to show the mobil version of the site in this webview.

But how can I changes the browser-header?

WebView {
                id: webView
                anchors.fill: parent
                url: "https://joindiaspora.com"
                smooth: true
                width: parent.width
                height: parent.height
                Header: "Mozilla/5.0 (Linux; U; Android 4.0.3; ko-kr; LG-L160L Build/IML74K) AppleWebkit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30"

Return this error:

Non-existent attached object

/usr/lib/x86_64-linux-gnu/qt5/bin/qmlscene exited with code 255
share|improve this question
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.