jnth7n
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2016
08:52 AM
boundingRect() call prevents key events
I have a graph scene application which launchs a Scene with a custom Group primarily visible.
Within this Group, I have to call boundingRect() and localBoundingRect() on an internal LayoutGroup in order to centralize it, then I set focus on a ButtonGroup (which is a child of the LayoutGroup).
My problem is that calling these functions is preventing any key events from being caught. I tried commenting just these lines and the key events be fine, though the layout is messed up unless I call them to calculate the positions I need.
Within this Group, I have to call boundingRect() and localBoundingRect() on an internal LayoutGroup in order to centralize it, then I set focus on a ButtonGroup (which is a child of the LayoutGroup).
My problem is that calling these functions is preventing any key events from being caught. I tried commenting just these lines and the key events be fine, though the layout is messed up unless I call them to calculate the positions I need.