Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QGraphicsItem : touch manipulation, how to ?

QGraphicsItem : touch manipulation, how to ?

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 1.3k 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
    Jena43
    wrote on last edited by
    #1

    Hello everyone,

    I would like to manipulate QGraphicsItems in a QGraphicsScene by touch manipulations (scale, move, rotate, inertia).
    I searched but found nothing already implemented for this.

    I'm sad that the flag "QGraphicsItem::ItemIsMovable":http://qt-project.org/doc/qt-4.8/qgraphicsitem.html#GraphicsItemFlag-enum is available only for mouse manipulation...

    Any idea how to do this ?

    Thanks.
    Using Qt5.2.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      steno
      wrote on last edited by
      #2

      Touch events go through mousePressEvent handlers on QWidgets unless you set a widget attribute to change that.

      Look at Qt::WA_AcceptTouchEvents

      "Documentation":http://qt-project.org/doc/qt-5/qt.html#WidgetAttribute-enum

      1 Reply Last reply
      0
      • J Offline
        J Offline
        Jena43
        wrote on last edited by
        #3

        First, sorry for late answer. In fact I knew that, but it didn't answered me, because I was trying to achieve these manipulations for each touchs (and not only the first one), and not only move manipulation. I was working on collaborative apps, where users must manipulate the QGraphicsItems independently.

        I had a project changement, so I don't need this anymore, but if someone created some default QGraphicsItems with touch manipulation enabled, I'll be pleased to know !

        If I do something like this in the future, I'll come post this here :)

        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