Skip to content

Is the latest version of pythonocc 7.8.1 model display window not embeddable in the backend of pyside6 ? #1421

Description

@YongYahn

I did a small demo test with pythonOCC version 7.8.1 and found that when using pyside6 as the backend for the model display window, it keeps prompting: no backend has been imported yet with “load_backend” . I tried to do the following settings, but the problem persists.

os.environ["PYTHONOCC_OFFSCREEN_RENDERER"]="0"
load_backend("pyside6")
display, start_display, add_menu, add_function_to_menu = init_display()

Make the following settings in the display window:
try:
self.occ_widget = qtViewer3d(display._parent)
except AttributeError:
self.occ_widget = qtViewer3d()
display.CreateView()

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