Modify the toolbar at run-time?

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
pietro_72_
Full Member
Posts: 81
Joined: Fri Apr 17, 2015 6:40 am
Location: http://creativitainformaticart.altervista.org

Modify the toolbar at run-time?

Post by pietro_72_ » Mon Jun 12, 2017 11:39 am

Hello

Can I change the toolbar depending on the option you choose on a QComboBox on the same toolbar?

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

Re: Modify the toolbar at run-time?

Post by andrew » Mon Jun 12, 2017 12:04 pm

Yes, you can use the QToolBar API to remove widgets from a toolbar or add new widgets.

Post Reply

Return to “QCAD Programming, Script Programming and Contributing”