Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Using QGraphicsView inside QML doesn't receive Touch Events!
Forum Updated to NodeBB v4.3 + New Features

Using QGraphicsView inside QML doesn't receive Touch Events!

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 1 Posters 1.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jackmack
    wrote on 25 Apr 2013, 15:55 last edited by
    #1

    Hi all,

    I'm using QML for the UI of my application and have a problem to get touch events.

    But now I want to embed a QGraphicsView/Scene to QML. I have read in some thread doing that is not good because the QML itselve uses already a QGraphicsView/Scene.

    But the background of my work is: I use a QGraphicsView/Scene to manage items. It's like a editor where you can place items, move it and so on. A lot of function are used and new implemented by myself. This is the point why I want to use it further.

    To get/receive touch events I watched to the qt examples and the /touch/pinchzoom/graphicsview makes exactly what I want: Use pinch for zooming. I copied the code snipped, put it to my QGraphicsView. But the viewportEvent() is never called with touch events. I set also a lot of attributes like WA_AcceptTouchEvents to all parent widgets. Also called setAcceptTouchEvent() of my QGraphicsProxyWidget. But no touch events received.

    Have anybody an idea what I have to set to get touch events?
    Using vc2010, Qt 4.8.0, win7, xp.

    Regards
    jack

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jackmack
      wrote on 13 May 2013, 07:07 last edited by
      #2

      Nobody has an idea? Workaround?

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved