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

setAcceptedMouseButtons not work properly

    XMLWordPrintable

Details

    • 0a87552e8122cdda58160da2dd549da411d9093c

    Description

      When

      setAcceptedMouseButtons(Qt::LeftButton);

      in your QQuickItem, and then

            void mousePressEvent(QMouseEvent *event)
            {
                qDebug()<<"mousePressEvent"<<event->button();
            }
      

      We got mousePressEvent fired when both, left and right mouse button down.
      I mean, first, you press left buttton - it fires (and its ok).
      Than, you press right button - and it fires too (Qt::RightButton fired).

      When click each mouse button separately - it works properly.

      P.S. I have attached an example - click on black area in top (left , and while holding it - right or middle button).

      Attachments

        For Gerrit Dashboard: QTBUG-31861
        # Subject Branch Project Status CR V

        Activity

          People

            dcape Dan Cape
            tower120 Diduh Andrey
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes