Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import QtQuick 2.1
- import QtQuick.Controls 1.0
- import QtQuick.Window 2.0
- import QtWebKit 3.0
- ApplicationWindow {
- title: "qml"
- width: 640
- height: 480
- WebView {
- anchors.fill: parent
- url: "http://bbc.co.uk"
- }
- Dialog {
- id: dialog
- title: 'Absolute Center.'
- message1: 'This box is absolutely centered within the viewport, horizontally and vertically, using only QML.'
- message2: 'Click me to learn more.'
- onClicked: {
- dialog.hide();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement