Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Chinese
  4. 请问一下,QWebEngineView怎么获取到它请求后的html代码
Forum Updated to NodeBB v4.3 + New Features

请问一下,QWebEngineView怎么获取到它请求后的html代码

Scheduled Pinned Locked Moved Unsolved Chinese
4 Posts 4 Posters 3.2k Views
  • 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.
  • T Offline
    T Offline
    THEFree
    wrote on last edited by
    #1

    我用的是pyqt5,使用QWebEngineView 怎么在它成功请求后,获取html代码

    1 Reply Last reply
    0
    • A Offline
      A Offline
      anshingy
      wrote on last edited by
      #2

      browser.page().toHtml(lambda x: print(x))

      1 Reply Last reply
      0
      • V Offline
        V Offline
        v.n.lee
        wrote on last edited by
        #3

        如果使用pyside2要怎么操作呢

        JonBJ 1 Reply Last reply
        0
        • V v.n.lee

          如果使用pyside2要怎么操作呢

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @v-n-lee
          For PySide2 see https://forum.qt.io/topic/110775/pyside2-tohtml/2.

          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