Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. QWebEngineView Mouseover crashing on debug
Qt 6.11 is out! See what's new in the release blog

QWebEngineView Mouseover crashing on debug

Scheduled Pinned Locked Moved Unsolved QtWebEngine
7 Posts 4 Posters 3.6k Views 2 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.
  • A Offline
    A Offline
    adviner
    wrote on last edited by koahnig
    #1

    I basically just initialize the class and add it to a vertical QSplitter. When I move the mouse over it is when I get the error:

    this->webView = new QWebEngineView();
        QSplitter *searchSplitter = new QSplitter(Qt::Vertical, this->widgetSearchResult);
        searchSplitter->addWidget(this->webView);
    

    Error I get is Screen shot

    https://drive.google.com/file/d/0BwXCsqWT3wkXTWFwSmMtcm1Eb2s/view

    When I look at the source code of web_event_factory.cpp I see that the error is landing on the Q_ASSERT(false);

    static WebInputEvent::Type webEventTypeForEvent(const QEvent* event)
    {
        switch (event->type()) {
        case QEvent::MouseButtonPress:
            return WebInputEvent::MouseDown;
        case QEvent::MouseButtonRelease:
            return WebInputEvent::MouseUp;
        case QEvent::Enter:
            return WebInputEvent::MouseEnter;
        case QEvent::Leave:
            return WebInputEvent::MouseLeave;
        case QEvent::MouseMove:
            return WebInputEvent::MouseMove;
        case QEvent::Wheel:
            return WebInputEvent::MouseWheel;
        case QEvent::KeyPress:
            return WebInputEvent::RawKeyDown;
        case QEvent::KeyRelease:
            return WebInputEvent::KeyUp;
        case QEvent::HoverMove:
            return WebInputEvent::MouseMove;
        case QEvent::TouchBegin:
            return WebInputEvent::TouchStart;
        case QEvent::TouchUpdate:
            return WebInputEvent::TouchMove;
        case QEvent::TouchEnd:
            return WebInputEvent::TouchEnd;
        case QEvent::TouchCancel:
            return WebInputEvent::TouchCancel;
        default:
            Q_ASSERT(false);
            return WebInputEvent::MouseMove;
        }
    }
    

    Is there a way to disable Q_ASSERT(false) in debug mode?

    K 1 Reply Last reply
    0
    • A adviner

      I basically just initialize the class and add it to a vertical QSplitter. When I move the mouse over it is when I get the error:

      this->webView = new QWebEngineView();
          QSplitter *searchSplitter = new QSplitter(Qt::Vertical, this->widgetSearchResult);
          searchSplitter->addWidget(this->webView);
      

      Error I get is Screen shot

      https://drive.google.com/file/d/0BwXCsqWT3wkXTWFwSmMtcm1Eb2s/view

      When I look at the source code of web_event_factory.cpp I see that the error is landing on the Q_ASSERT(false);

      static WebInputEvent::Type webEventTypeForEvent(const QEvent* event)
      {
          switch (event->type()) {
          case QEvent::MouseButtonPress:
              return WebInputEvent::MouseDown;
          case QEvent::MouseButtonRelease:
              return WebInputEvent::MouseUp;
          case QEvent::Enter:
              return WebInputEvent::MouseEnter;
          case QEvent::Leave:
              return WebInputEvent::MouseLeave;
          case QEvent::MouseMove:
              return WebInputEvent::MouseMove;
          case QEvent::Wheel:
              return WebInputEvent::MouseWheel;
          case QEvent::KeyPress:
              return WebInputEvent::RawKeyDown;
          case QEvent::KeyRelease:
              return WebInputEvent::KeyUp;
          case QEvent::HoverMove:
              return WebInputEvent::MouseMove;
          case QEvent::TouchBegin:
              return WebInputEvent::TouchStart;
          case QEvent::TouchUpdate:
              return WebInputEvent::TouchMove;
          case QEvent::TouchEnd:
              return WebInputEvent::TouchEnd;
          case QEvent::TouchCancel:
              return WebInputEvent::TouchCancel;
          default:
              Q_ASSERT(false);
              return WebInputEvent::MouseMove;
          }
      }
      

      Is there a way to disable Q_ASSERT(false) in debug mode?

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @adviner

      I have added code tags in your post.

      The only thing I know you probably already found is using QT_NO_DEBUG, but this would require a recompilation of whole Qt and you would have at least not all debug information.

      You may want to check on JIRA for a bug report and report it, if not already done.

      Any idea of the actual event reported?
      Possibly you may want to do a complete rebuild of your application in case there was a flaw in compilation and a mixup of whatever.
      Can you produce a small example reproducing the problem?

      Do you see this also with previous versions of Qt?

      In case you find or file information on JIRA, please provide a link for others to be able to find the report easier.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        What version of Qt are you using ?

        On what platform ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • A Offline
          A Offline
          adviner
          wrote on last edited by
          #4

          Latest version 5.9.1

          1 Reply Last reply
          0
          • A Offline
            A Offline
            adviner
            wrote on last edited by
            #5

            Windows 10 Pro 64 Bit. Using Visual Studio 2017

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              What hardware ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • P Offline
                P Offline
                PythonMaster
                wrote on last edited by
                #7

                I found this thread on google.
                I checked Jira and saw that there is a fix for the next release.
                https://bugreports.qt.io/browse/QTBUG-62200?jql=text ~ "hover qwebengineview"

                1 Reply Last reply
                1

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved