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

Sendevent will cause crash

    XMLWordPrintable

Details

    • Linux/X11
    • 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

            srutledg Shawn Rutledge
            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