Page 1 of 1

Adding to menus/toolbar within script

Posted: Wed Nov 15, 2023 9:34 am
by mechatronic
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

Re: Adding to menus/toolbar within script

Posted: Wed Nov 15, 2023 11:35 am
by andrew
I wouldn't recommend adding menus or toolbars for a particular post processor (although it's likely possible).

If possible, add configuration options to the CAM Configuration dialog.

Perhaps, you can elaborate on the tools you want to add, so I can be more helpful.