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

QWebEngineView Crash when selecting text in Html document and dragging

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.10.1
    • WebEngine
    • None
    • Win 10 64-Bit

      Qt 5.10.1

      Qt Creator 4.6.0

       

    Description

      I created a simple application, which displays a QWebEngineView and adds a simple Html document via setHtml(...).

      #include <QApplication>
      #include <QWebEngineView>
      
      
      int main(int argc, char *argv[])
      {
          QApplication a(argc, argv);
      
      
          QString minHtml(R"(<!DOCTYPE html><html><head><meta charset="utf-8"><title>QWebEngine Selection Bug MinRep</title></head><body><h1>QWebEngine Selection Bug MinRep</h1>Table of Contents<br><ol><li>foo</li><li>bar</li><li>foobar</li></ol><br></body></html>)");
          QWebEngineView webEngineView;
          webEngineView.setHtml(minHtml);
          webEngineView.show();
      
      
          return a.exec();
      }
      

      To reproduce the bug the application has to be built in debug mode. Select some text than put the cursor over the selected parts and click with the left mouse button and drag in any direction. The application should crash immediately.

      By doing the same in release mode the selected part is dragged with the mouse cursor and the application does not crash.

       

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qt_webengine_team Qt WebEngine Team
              camaro camaro
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes