Can I embeded Vismach into Qtvcp ?

More
2 years 3 months ago #305827 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 

Please Log in to join the conversation.

More
2 years 3 months ago #305829 by Aciera

Please Log in to join the conversation.

More
2 years 3 months ago #305831 by cmorley
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.

Please Log in to join the conversation.

More
2 years 3 months ago #305838 by timaer
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 to join the conversation.

More
2 years 3 months ago #305839 by timaer
Thanks,but I'm using full customized qtvcp (using .ui file and handler.py),so ,not very fitable .

Please Log in to join the conversation.

More
2 years 3 months ago #305855 by cmorley
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.

Please Log in to join the conversation.

More
2 years 3 months ago #305937 by timaer
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 to join the conversation.

More
2 years 2 months ago #307395 by cmorley
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

Please Log in to join the conversation.

Time to create page: 0.091 seconds
Powered by Kunena Forum