Removed QList<QNetworkConfiguration>, fails on Qt < 4.7
[lqt/mk.git] / test / webview.lua
blobe168a275dd23ee78840c45b47bc7b9e111e017c1
1 #!/usr/bin/lua
3 require'qtcore'
4 require'qtgui'
5 require'qtwebkit'
7 app = QApplication.new_local(1 + select('#', ...), {arg[0], ...})
9 local address = tostring(arg[1])
11 if address == 'nil' then
12 address = 'www.lua.org'
13 end
15 url = QUrl.new(QString.new('http://'..address))
17 print('Loading site '..address..' ...')
19 webView = QWebView.new_local()
20 webView:setUrl(url)
21 webView:show()
23 app.exec()