Order of main menu

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
mink
Active Member
Posts: 30
Joined: Mon Jan 19, 2015 7:20 pm

Order of main menu

Post by mink » Fri Jan 23, 2015 2:21 pm

Hello,

I read the post about menu order. However, to me it seems that it keeps one question open: how are the top level menu entries sorted? My newly created main menu entry is appended to the end of the menu (behind Help), which is pretty ugly.

How can I put my enty between Block and Window, for instance?

Is there an easy way, or do I have to programaticly use QT to shuffle the main menu entries?


Thanks for your help in advance!

Ulrich

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

Re: Order of main menu

Post by andrew » Fri Jan 23, 2015 3:11 pm

mink wrote:or do I have to programaticly use QT to shuffle the main menu entries?
Yes, this might be your best (only?) option if your scripts are not wrapped as resources into a C++ plugin.

QCAD automatically initialises scripts (i.e. calls the init function of scripts) which are resources embedded in plugins before initialising the Help tools.
However, scripts that are added to the scripts directory are not as easily detectable.

Post Reply

Return to “QCAD Programming, Script Programming and Contributing”