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

QMenu makes void enterEvent(QEvent *) and void leaveEvent(QEvent *) broken

    XMLWordPrintable

Details

    • d806b996beab76cbc43ffa11bc38721fa19c9c81

    Description

      1) widget is a window and it not contained in other widgets
      2) widget attribute Qt::FramelessWindowHint is true

      if context menu QMenu executed and closed by left mouse button that clicked directly to parent widget
      than functions void enterEvent(QEvent *) and void leaveEvent(QEvent *) become stop sending events
      until QMenu executed once again and closed by clicking outside of widget.
      See example in Attachment.
      I use setAttribute(Qt::WA_TransparentForMouseEvents,true); directly before executing menu and this helps but I think that bug mast be fixed.

      Attachments

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

        Activity

          People

            pullatti Prasanth Ullattil
            ighor IGHOR
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes