Highlighting the Options Toolbar
Posted: Sat Aug 30, 2025 4:22 am
For users that keep forgetting how important the Option Toolbar is in QCAD.
The code is quite simple:
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.
Regards,
CVH

The code is quite simple:
Code: Select all
var optionsToolBar = EAction.getOptionsToolBar();
optionsToolBar.setStyleSheet("QToolBar {background: red;}");
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.

Regards,
CVH