QCAD - 2D CAD System.
Click here for a documentation of the DokuWiki formatting syntax that can be used in reports
Please search for existing tasks (also closed ones) before opening a new task.
Please make sure that you are using the latest Version of QCAD before posting a bug (menu Help - Check for Updates)
FS#9 - RSettings.setValue() doesn't work for "GraphicsViewColors/BackgroundColor"
Attached to Project:
QCAD
Opened by Martin (martin) - Thursday, 14 April 2011, 11:36 GMT+2
Last edited by Martin (martin) - Thursday, 14 April 2011, 15:53 GMT+2
Opened by Martin (martin) - Thursday, 14 April 2011, 11:36 GMT+2
Last edited by Martin (martin) - Thursday, 14 April 2011, 15:53 GMT+2
|
DetailsContext: Needed to set color settings for book images. RSettings.setValue("GraphicsViewColors/BackgroundColor", new RColor(0xff, 0xfe, 0xfd)); RSettings.setValue("GraphicsViewColors/MetaGridColor", new RColor(0xff, 0xfe, 0xfd));
QCAD3.conf: BackgroundColor=@Variant(\0\0\0\x7f\0\0\0\aRColor\0\x1\xff\xff\0\0\0\0\0\0\0\0\0\x2) MetaGridColor =@Variant(\0\0\0\x7f\0\0\0\aRColor\0\x1\xff\xff\xff\xff\xfe\xfe\xfd\xfd\0\0\0\x2)
Setting the alpha channel value and the color mode for RColor doesn’t change anything. |
This task depends upon
The background color of a graphics view can be set without changing the configuration file (view.setBackgroundColor()). This override is needed for the part library icons (white background) and also serves as cache.
To set the background color for an existing graphics view (does not change the settings file):
To set the background color for all new graphics views (changes the settings file):
To set the background color for an existing graphics view and changing the settings file, both lines are needed.
For all other colors, RSettings.setValue(...) can be used.
yes, but
stores black (0) for any given value. That's the bug.
Sure I can make it with a workaround for the book images. The idea was to have a setup method, where all things are set right (colors, dock window settings etc.). At this point in time there is no drawing opened, so changing the config file was the only way.