Skip to content

change of orientation when the nodes have embedded WIdgets #466

Open

Description

@abarmitage

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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