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

Sendevent will cause crash

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.10.1, 5.11.0, 5.11.1, 5.11.2
    • Fix Version/s: 5.11.3, 5.12.0 Beta 4
    • Labels:
      None
    • Environment:
      ubuntu16.04 + Qt5.11.2
    • Platform/s:
      Linux/X11
    • Commits:
      7f57472e24a45a9cb56c7742f4c031405262ef98 (qt/qtdeclarative/5.11)

      Description

      Hi ,

      I try to call sendevent to simulate mouse click event . I use the attachment demo on Ubuntu 16.04 + Qt 5.11. It will crash directly . I tried a lot and find some interested things.  You can check main.qml file . I put some comment on it .

      1. when I use mouseArea on the outside it will crashed directly , but I try it on Qt 5.9 , the crash not happen.
      2. when I delete mouseArea the crash not happen

       

      Another thing is strange . On Qt 5.9 ,  I use two different objects as parameter to call sendevent .

      One is window , it will call sendevent successfully.

      Another is window's child named mainroot ,  sendevent return true but nothing happens.

       

        Attachments

        1. crashDemo.tar.gz
          2 kB
        2. MenuCrash.zip
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            srutledg Shawn Rutledge
            Reporter:
            haipeng.yu Haipeng Yu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes