Skip to content

change of orientation when the nodes have embedded WIdgets #466

@clythersHackers

Description

@clythersHackers

I notice that vertical_layout example, the nodes don't have embeddedWidget()

When I call setOrientation on an existing scene containing nodes that do have embedded widgets I get a crash

I believe this may be because the during the change of orientation, the scene has been cleared, and a onModelReset() is called, then the QWidgets have been deleted but their pointers are not reset, and are used to determine the new size.

When I ensure I have a scene with no embedded widgets, no crash, and the nodes reorient themselves correctly.

However, in truth, if the overall orientation of the scene has changed, shouldn't the X,Y coordinates be swapped too?

Image

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions