AuthView.qml 658 B

12345678910111213141516171819202122232425
  1. import Qt 4.7
  2. import QtWebKit 1.0
  3. import "../js/OAuth.js" as FutuAuth
  4. Item {
  5. width: screenWidth
  6. height: screenHeight
  7. Rectangle {
  8. anchors.fill: parent;
  9. color: "steelblue"
  10. WebView {
  11. id: authWebView
  12. anchors.fill: parent
  13. anchors.margins: 20
  14. url: appItem.authWebViewUrl;
  15. settings.privateBrowsingEnabled: true
  16. settings.offlineWebApplicationCacheEnabled: false
  17. onLoadFinished: {
  18. console.log("WEBVIEW onLoadFinished, url: " + url);
  19. FutuAuth.nextAuthStep();
  20. }
  21. }
  22. }
  23. }