Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User kenouz1234's Avatar
    Join Date
    Mar 2009
    Posts
    22
    Hello,
    Please anyone know how to make QML WebView Element use Qt::openUrlExternally(url) instead of newWindowComponent (when clicking on link that try to open a newWindowComponent)?
    Last edited by kenouz1234; 2012-04-26 at 02:06.

  2. #2
    Nokia Developer Champion gaba88's Avatar
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,692
    hmmm i don't think there is any direct way , but you try something like onLoadStarted you can check for the URL and than call Qt.openUrlExternally there. I am not sure how this is going to work this is just an idea.

  3. #3
    Registered User kenouz1234's Avatar
    Join Date
    Mar 2009
    Posts
    22
    Quote Originally Posted by gaba88 View Post
    hmmm i don't think there is any direct way , but you try something like onLoadStarted you can check for the URL and than call Qt.openUrlExternally there. I am not sure how this is going to work this is just an idea.
    I tried this:

    onLoadStarted: {console.log("url: "+url); Qt.openUrlExternally(url);}

    but onLoadStarted doesn't show/open any url when the web page try to open an new window.

  4. #4
    Registered User kenouz1234's Avatar
    Join Date
    Mar 2009
    Posts
    22
    If isn't possible to do this directly with QML WebVew, there is a possibility to do this with QNetworkAccessManager to catch and open externally the url of newWindowComponent?

Similar Threads

  1. problem with Qt.openUrlExternally on Symbian^1
    By paolob in forum [Archived] Qt Quick
    Replies: 1
    Last Post: 2011-12-29, 11:19
  2. Replies: 8
    Last Post: 2011-12-02, 09:28
  3. how to make a webview work correctly in a flickable - qml (qt quick)
    By trevormacro in forum [Archived] Qt Quick
    Replies: 2
    Last Post: 2011-09-29, 13:02
  4. Qt.openUrlExternally() gives parse error
    By manikantan in forum [Archived] Qt Quick
    Replies: 1
    Last Post: 2011-09-19, 15:26

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved