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. Getting notified when parent transformation changed
Forum Updated to NodeBB v4.3 + New Features

Getting notified when parent transformation changed

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 194 Views
  • 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.
  • M Offline
    M Offline
    Milosz Lazurek
    wrote on last edited by
    #1

    Hello,

    I have a simple application with a custom QQuickItem and associated QSGRenderNode. This custom element is a child of the parent "root" element. When I apply a 180 degree rotation to the root element (sort of "screen flip") I would like to get some notification for the custion QQuickItem child element that its actual screen position has been changed.
    I have tried connecting "xChanged" "yChanged" and "rotationChanged" signals to call update() method but the signals are not being triggered, also no updatePaintNode() is being called. I must manually call item->mapRectToScene to get the new position. I can retrieve the new position also durning rendering in QSGRenderNode::render() method, using RenderState::scissorRect for example, but I need the updated position notification outside the render thread, preferably BEFORE rendering.
    Is there any chance to get notified when the parent element changed the absolute position of a child element?

    Regards
    Milosz

    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