Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Portuguese
  4. Como fazer que um evento onClick no javascript chame uma função do Qt?
Qt 6.11 is out! See what's new in the release blog

Como fazer que um evento onClick no javascript chame uma função do Qt?

Scheduled Pinned Locked Moved Portuguese
4 Posts 2 Posters 6.3k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    utilizando o seguinte script:

    @<input type=button value='Imprimir' onClick='funcao()'>;@

    gostaria de chamar funcao(), sendo ela uma função do próprio Qt

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Vc esta tentando fazer isso usando webkit? numa aplicacao em C++ ou QML?

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        utilizando Webkit sim,em uma aplicação c++

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          Isso deve ajudar:
          http://doc.qt.nokia.com/4.7-snapshot/qwebframe.html#addToJavaScriptWindowObject

          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