Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-64933

HTML tooltips persist after moving mouse away

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.9.4, 5.10.1
    • 5.9.2, 5.10, 5.11
    • WebEngine, WebView
    • None
    • 9f798b787a2542688c30503d3f62fe2d7c4d5a72

      Using the QWebEngineView, I am displaying a button with a tooltip using the title attribute, but the tooltip is stuck on the screen even after the cursor is not hovering over the element.

      The tooltip will eventually timeout and disappear (perhaps after 10+ seconds), but this is not the same functionality that we would expect using a native browser.

      webengineframe::webengineframe(QWidget *parent)
          : QMainWindow(parent)
      {
          ui.setupUi(this);
          view = new QWebEngineView(this);
          QString dom = " \
              <html> \
                <body> \
                  <button title='tooltip testing'>tooltip testing</button> \
                </body> \
      	</html>";
          view->setHtml(dom);
          view->show();
      }
      

        1. tooltip.jpg
          15 kB
          Ceejay Chand
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            pvarga Peter Varga
            cchand Ceejay Chand
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes