Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML WebView Select Dialog Issue (Appearing off screen)
Qt 6.11 is out! See what's new in the release blog

QML WebView Select Dialog Issue (Appearing off screen)

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 1 Posters 3.0k 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.
  • G Offline
    G Offline
    gauntface
    wrote on last edited by
    #1

    Hi everyone,

    I'm currently implementing a WebView which contains a web page with a select form element on the page. Whenever I click on the select box, the dialog containing the possible values is appearing off the page.

    The dialog doesn't centre itself within the WebView or the parent. On the simulator it appears just below the dropdown box on the web page but is too wide to fit on the screen (Obscuring the scrollbar) and on the device it appears in the bottom left hand corner of the screen.

    Has anyone got any experience with this? I'm simply using the QML WebView item and it's not within a Flickable (Which I originally thought would be the issue)

    Thanks in advance for any help / tips.

    Matt

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

      I quick example snippet of the problem:

      @
      import QtQuick 1.0
      import QtWebKit 1.0

      Rectangle {
      anchors.fill: parent

      WebView {
          anchors.fill: parent
      
          url: "http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_option"
      }
      

      }@

      "Screenshot of the result":http://imageshack.us/photo/my-images/269/scr000001jj.jpg/

      1 Reply Last reply
      0
      • G Offline
        G Offline
        gauntface
        wrote on last edited by
        #3

        Just tried out the QWebView and dialog shows at the bottom of the page and greys out the rest of the screen. So this seems to be a bug in the QML WebView.

        "Screenshot of the QWebView in a Qt Mobile Application":http://imageshack.us/photo/my-images/713/scr000004sr.jpg/

        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