Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. German
  4. Helfen Sie mir mit "window.open"
Qt 6.11 is out! See what's new in the release blog

Helfen Sie mir mit "window.open"

Scheduled Pinned Locked Moved German
2 Posts 1 Posters 1.4k 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.
  • B Offline
    B Offline
    brcontainer
    wrote on last edited by
    #1

    Ich entwickle eine Web-Browser, wird es Unterstützung für Tabs.

    Aber ich habe eine Schwierigkeit, "QWebPage :: create" kein Unterschied "window.open" von "<a href="" targert="">".

    Beispiele:

    @var params = "menubar=no,location=no,resizable=no";
    window.open("http://www.cnn.com/", "_blank", params);@

    und

    @<a href="http://www.cnn.com/" target="_blank">@

    durch "QWebPage :: create" betrachtet die gleiche Sache

    Wie man beide unterscheiden?

    Wenn "Link / Anker" wird der Browser eine neue Registerkarte hinzuzufügen,
    wenn "window.open" wird der Browser ein neues Fenster zu öffnen.

    Bitte helfen Sie.

    QT project: https://github.com/brcontainer/qt-helper

    1 Reply Last reply
    0
    • B Offline
      B Offline
      brcontainer
      wrote on last edited by
      #2

      gelöst:
      http://stackoverflow.com/a/21925144/1518921

      QT project: https://github.com/brcontainer/qt-helper

      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