Adding to menus/toolbar within script

Discussion forum for C++ and script developers who are using the QCAD development platform or who are looking to contribute to QCAD (translations, documentation, etc).

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files, scripts and screenshots.

Post one question per topic.

Post Reply
mechatronic
Junior Member
Posts: 22
Joined: Wed Nov 08, 2023 11:24 am

Adding to menus/toolbar within script

Post by mechatronic » 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

User avatar
andrew
Site Admin
Posts: 9063
Joined: Fri Mar 30, 2007 6:07 am

Re: Adding to menus/toolbar within script

Post by andrew » Wed Nov 15, 2023 11:35 am

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.

Post Reply

Return to “QCAD Programming, Script Programming and Contributing”