Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Qt WebKit interpretation of target="new"
Forum Updated to NodeBB v4.3 + New Features

Qt WebKit interpretation of target="new"

Scheduled Pinned Locked Moved Qt WebKit
4 Posts 3 Posters 3.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    semafore
    wrote on last edited by
    #1

    I'm trying to help my team solve a way to get Qt WebKit view to interpret the html code:
    @<a href="foo.html" target="new">go to foo</a>@

    to pop a new webkit view as a new OS level window. Any hints as to where to look to enable this functionality are much appreciated.

    Best,
    -k

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      Did you sublcass [[Doc:QWebView]] and did you reimplement "QWebView::createWindow() ":/doc/qt-4.8/qwebview.html#createWindow?

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • D Offline
        D Offline
        developer
        wrote on last edited by
        #3

        semafore thanks for the question
        volker thanks for the anwser
        this thing was also required for me
        after reimplenting the protected function
        there will be a paramter QWebPage::WebWindowType type
        it is an enum http://qt-project.org/doc/qt-4.8/qwebpage.html
        QWebPage::WebBrowserWindow 0 The window is a regular web browser window.
        QWebPage::WebModalDialog 1 The window acts as modal dialog.
        you will hvae to check which is the one and perform the task for that one

        1 Reply Last reply
        0
        • D Offline
          D Offline
          developer
          wrote on last edited by
          #4

          one question hot to get the url which is to be opened in QWebView::createWindow() how to get the url

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved