- Posts: 35
- Thank you received: 0
Changing starting zoom level on Qt_Vismach
- RomeReactor
- Topic Author
- Offline
- Junior Member
-
Less
More
4 years 7 months ago #237275
by RomeReactor
Changing starting zoom level on Qt_Vismach was created by RomeReactor
Hi all. We' replaced GCodeGraphics qith a Qt_Vismach model on Qt Dragon, but the starting zoom level is too close to the model:
For reference, here is what the full model looks like:
We've been unsuccsessfull in trying to change the starting zoom level. Any ideas?
Attachment not found
For reference, here is what the full model looks like:
Attachment not found
We've been unsuccsessfull in trying to change the starting zoom level. Any ideas?
Please Log in to join the conversation.
4 years 7 months ago #237284
by cmorley
Replied by cmorley on topic Changing starting zoom level on Qt_Vismach
try this change:
machine = MILL.Window()
self.w.horizontalLayout_3.addWidget(machine)
# set zoom between 600 to 5600
machine.glWidget.setZoom(3000)
machine = MILL.Window()
self.w.horizontalLayout_3.addWidget(machine)
# set zoom between 600 to 5600
machine.glWidget.setZoom(3000)
Please Log in to join the conversation.
- RomeReactor
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 35
- Thank you received: 0
4 years 7 months ago #237371
by RomeReactor
Replied by RomeReactor on topic Changing starting zoom level on Qt_Vismach
Thanks. We also managed to change the starting zoom level by changing this in class Window(QWidget), from this:
to this:
Code:
v.distance = size * 3
Code:
v.distance = size * 6
Please Log in to join the conversation.
Time to create page: 0.078 seconds
