Adding to menus/toolbar within script
Posted: Wed Nov 15, 2023 9:34 am
Hi,
I've got a pre-processor for QCAD-CAM that I'm expanding, and need to add some menu/toolbar options. They're related to the specific post-processor, so only should be shown when it's selected and is being used.
I've found a programatic way of updating the CAM Configuration dialogue, but I have no idea about Qt, so unsure how I'd amend the toolbars/menus in the same way. I know I can create new menus etc using the folder structure (and have been playing with the samples), but I need everything to be contained within the pre-processor's .js file.
Thanks
I've got a pre-processor for QCAD-CAM that I'm expanding, and need to add some menu/toolbar options. They're related to the specific post-processor, so only should be shown when it's selected and is being used.
I've found a programatic way of updating the CAM Configuration dialogue, but I have no idea about Qt, so unsure how I'd amend the toolbars/menus in the same way. I know I can create new menus etc using the folder structure (and have been playing with the samples), but I need everything to be contained within the pre-processor's .js file.
Thanks