-
Using the So far, I am using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can follow the qtviewer.py example. Start at the ezdxf/src/ezdxf/addons/drawing/qtviewer.py Line 259 in 860dd34 The viewer creates a new backend for each new loaded DXF document. This seems to be the safest way to do it. The ezdxf/src/ezdxf/addons/drawing/qtviewer.py Line 287 in 860dd34 |
Beta Was this translation helpful? Give feedback.
You can follow the qtviewer.py example. Start at the
CADWidget.set_document()
method.ezdxf/src/ezdxf/addons/drawing/qtviewer.py
Line 259 in 860dd34
The viewer creates a new backend for each new loaded DXF document. This seems to be the safest way to do it.
The
CADWidget.draw_layout()
method draws another layout of the same DXF document without creating a new backend, which also seems to work.ezdxf/src/ezdxf/addons/drawing/qtviewer.py
Line 287 in 860dd34