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 matrix to describe a QQuickItem's transformation
Forum Updated to NodeBB v4.3 + New Features

Using matrix to describe a QQuickItem's transformation

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 903 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.
  • L Offline
    L Offline
    lemourin
    wrote on last edited by
    #1

    Hi,
    Does anybody know how to apply a transformation described by QTransform to QQuickItem?
    In QQuickItem there are only setPosition, setRotation and setScale methods and i just can't compose them into a desired transformation. I tried a lot of solutions, most interesting is setting my matrix in UpdatePaintNodeData:: transformNode in QQuickItem::updatePaintNode. This solution would be great if it didn't mess up all mouse events delivered to this item. I mean that these events don't take under consideration updatePaintNodeData->transformNode->matrix().
    My main goal is to have a 2d scene which can be easily transformed by a matrix, with valid mouse events.

    Pls help

    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