Highlighting the Options Toolbar

If you are having problems with QCAD, post here. Please report bugs through our Bug Tracker instead.

Always attach your original DXF or DWG file and mentions your QCAD version and the platform you are on.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
CVH
Premier Member
Posts: 4921
Joined: Wed Sep 27, 2017 4:17 pm

Highlighting the Options Toolbar

Post by CVH » Sat Aug 30, 2025 4:22 am

For users that keep forgetting how important the Option Toolbar is in QCAD. :wink:

The code is quite simple:

Code: Select all

var optionsToolBar = EAction.getOptionsToolBar();
optionsToolBar.setStyleSheet("QToolBar {background: red;}");
You can already execute that in the Script Shell (GE), see menu Misc .. Development.
Hit "SELECT ALL" then copy/paste the whole text at once in the bottom line of the Script Shell.
The change is instantaneous but only for the current QCAD session.

Another option is to save this code as for example RedOptionsToolbar.js with any suitable plain text editor.
For example directly under the QCAD installation path.

Then include this script to be run on startup.
The target command to start QCAD then reads for example: [installation path]\qcad.exe -exec RedOptionsToolbar.js

Of course, you can specify any color you want and that includes rgba or HTML colors.
Color #bfffbf instead of red would be a pale green. :wink:

Regards,
CVH

Post Reply

Return to “QCAD Troubleshooting and Problems”