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

[REG 6.3->6.4] lost the ability to test HandlerPoint.pressedButtons (flags) using & operator

    XMLWordPrintable

Details

    • 9793c663c (dev), f61d2baef (6.4)

    Description

      qtdeclarative/examples/quick/pointerhandlers/components/MouseFeedbackSprite.qml has this:

              Image {
                  source: "images/mouse_left.png"
                  visible: handler.point.pressedButtons & Qt.LeftButton
              }
      

      It's ok in 6.3.1, 6.2 and earlier, but in 6.4 and later it generates TypeError:

      qrc:/qt/qml/pointerhandlers/components/MouseFeedbackSprite.qml:27: TypeError: Type error

      The property is from here

      class Q_QUICK_PRIVATE_EXPORT QQuickHandlerPoint {
          Q_GADGET
      ...
          Q_PROPERTY(Qt::MouseButtons pressedButtons READ pressedButtons)
      

      Attachments

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

        Activity

          People

            semih.yavuz Semih Yavuz
            srutledg Shawn Rutledge
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes