Can I embeded Vismach into Qtvcp ?
- timaer
- Offline
- Premium Member
-
Less
More
- Posts: 82
- Thank you received: 4
22 Jul 2024 02:02 #305827
by timaer
Can I embeded Vismach into Qtvcp ? was created by timaer
Hi,everyone.
I'm developing a cnc control panel using Qtvcp,and I need to display the vismach 3d model and movement in the qtvcp UI interface,but I dont know how to make it ,does anyone help me how to make vismach 3d model and movement in qtvcp's UI interface (not popup window),thank you
I'm developing a cnc control panel using Qtvcp,and I need to display the vismach 3d model and movement in the qtvcp UI interface,but I dont know how to make it ,does anyone help me how to make vismach 3d model and movement in qtvcp's UI interface (not popup window),thank you
Please Log in or Create an account to join the conversation.
- Aciera
-
- Offline
- Administrator
-
Less
More
- Posts: 4206
- Thank you received: 1848
22 Jul 2024 04:33 #305829
by Aciera
Replied by Aciera on topic Can I embeded Vismach into Qtvcp ?
Have a look here:
forum.linuxcnc.org/38-general-linuxcnc-q...vcp-tabs-axis#268582
forum.linuxcnc.org/38-general-linuxcnc-q...vcp-tabs-axis#268582
The following user(s) said Thank You: timaer
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7844
- Thank you received: 2109
22 Jul 2024 05:12 #305831
by cmorley
Replied by cmorley on topic Can I embeded Vismach into Qtvcp ?
Have you seen the docs?
linuxcnc.org/docs/stable/html/gui/qtvcp-vismach.html
Also the sample configurations qtdragon_metric or qtdragon_inch show vismach models in the utilities tab.
linuxcnc.org/docs/stable/html/gui/qtvcp-vismach.html
Also the sample configurations qtdragon_metric or qtdragon_inch show vismach models in the utilities tab.
The following user(s) said Thank You: timaer
Please Log in or Create an account to join the conversation.
- timaer
- Offline
- Premium Member
-
Less
More
- Posts: 82
- Thank you received: 4
22 Jul 2024 08:48 #305838
by timaer
Replied by timaer on topic Can I embeded Vismach into Qtvcp ?
Thanks,but what I need is using vismach in my full customized qtvcp control pannel (which is controlled by an UI file and a handler.py)
Please Log in or Create an account to join the conversation.
- timaer
- Offline
- Premium Member
-
Less
More
- Posts: 82
- Thank you received: 4
22 Jul 2024 08:49 #305839
by timaer
Replied by timaer on topic Can I embeded Vismach into Qtvcp ?
Thanks,but I'm using full customized qtvcp (using .ui file and handler.py),so ,not very fitable .
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7844
- Thank you received: 2109
22 Jul 2024 13:05 #305855
by cmorley
Replied by cmorley on topic Can I embeded Vismach into Qtvcp ?
Are you using screen_options widget in your screen?
You can use that to load panels from INI definitions.
The docs show you how to load one programically.
You can use that to load panels from INI definitions.
The docs show you how to load one programically.
The following user(s) said Thank You: timaer
Please Log in or Create an account to join the conversation.
- timaer
- Offline
- Premium Member
-
Less
More
- Posts: 82
- Thank you received: 4
24 Jul 2024 01:31 #305937
by timaer
Replied by timaer on topic Can I embeded Vismach into Qtvcp ?
Thank you ,I've read the doc of screen_options in qtvcp widgets.I think it may be exactly what I want ,but the doc is lack of more sample code of usage ,so it's not very easy for me to use it .Not like the other qtvcp widget such as ActionButton,very easily to use.the screen_options seems to require more background knowlege ,would you show some sample use of this widget ? I'll be very appreciateful of that .
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7844
- Thank you received: 2109
10 Aug 2024 01:43 #307395
by cmorley
Replied by cmorley on topic Can I embeded Vismach into Qtvcp ?
Sorry for late reply:
I typically add the screen options widget to the 'centralwidget' of the MainWindow.
Then you can set properties in the screenOption widget to turn on optional behavior such as:
Preference file loading/saving
Common dialog widgets
User Color properties for use in stylesheets
play sounds on events
catch the close window event to add a close dialog
embedding external programs
Most of these properties are true/false
I typically add the screen options widget to the 'centralwidget' of the MainWindow.
Then you can set properties in the screenOption widget to turn on optional behavior such as:
Preference file loading/saving
Common dialog widgets
User Color properties for use in stylesheets
play sounds on events
catch the close window event to add a close dialog
embedding external programs
Most of these properties are true/false
The following user(s) said Thank You: timaer
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.070 seconds