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

No touch events handling (QGraphicsProxyWidget / QWidget)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 5.6.0 RC
    • 5.4.0, 5.4.1, 5.5.0
    • Widgets: GraphicsView
    • None
    • Windows 8.1 (x64) + touch screen
      Qt Creator 3.3.2
      Compiler : MinGW (32 bits)
    • f5b682d320401dd82c37cee0b2e400966460e37c

      I have scene with a custom widget (added thanks to a QGraphicsProxyWidget). I reimplemented the "event" function of my custom widget to intercept touch event but this widget does not recieved any touch events.

      I set the attribute :Qt::WA_AcceptTouchEvents to my widget and I set : setAcceptTouchEvents(true) to QGraphicsProxyWidget.

      When I use my custom widget out of a QGraphicsScene/QGraphicsView, I recieve touch events.

      You can find a sample code attached.

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

            rafaelroquetto Rafael Roquetto
            jo_du_71 Joffrey Cousin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: