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. How can I get the widget from a QWebElement?
Forum Updated to NodeBB v4.3 + New Features

How can I get the widget from a QWebElement?

Scheduled Pinned Locked Moved Unsolved Qt WebKit
3 Posts 2 Posters 945 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
    Bob Asm
    wrote on last edited by
    #1

    I'd like to use QTest::keyClicks() with a QWebElement, but as the first argument must be a QWidget, is possible to get the QWidget that the QWelement was build on top of to use with that method?

    K 1 Reply Last reply
    0
    • B Bob Asm

      I'd like to use QTest::keyClicks() with a QWebElement, but as the first argument must be a QWidget, is possible to get the QWidget that the QWelement was build on top of to use with that method?

      K Offline
      K Offline
      Konstantin Tokarev
      wrote on last edited by Konstantin Tokarev
      #2

      QWebElements aren't build on top of widgets. Whole view is a single widget.

      UPD: However, you can set focus to particular element and use keyClicks with webview

      1 Reply Last reply
      0
      • K Offline
        K Offline
        Konstantin Tokarev
        wrote on last edited by
        #3

        You may want to use this instead: https://github.com/cisco-open-source/qtwebdriver

        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