Bug report #22073

Data defined size does not block the normal size menu

Added by matteo ghetta 11 months ago. Updated 10 months ago.

Affected QGIS version:3.6.2 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:29886


Happens both in the Style panel and in the main Symbology dialog.

Basically when a data defined value is used to overwrite the default size of the marker in the sub dialog it is still possible to change the size value (and the preview updates accordingly). The layer keeps the data defined values entered.

Two pictures worth a thousand words

QGI 3.4.6 and master

b2.gif (118 KB) matteo ghetta, 2019-05-14 10:05 AM

b1.png (86.4 KB) matteo ghetta, 2019-05-14 10:05 AM

ksnip_20190520-135720.png (46 KB) matteo ghetta, 2019-05-20 01:58 PM


#1 Updated by Alessandro Pasotti 10 months ago

Big question: is this issue limited to these two widgets or is it a general issue for ALL widgets and controls that have a Data-Defined property?

Because if it's the second, we might better think of a general solution instead of patching the widgets one by one.

#2 Updated by Alessandro Pasotti 10 months ago

  • Status changed from Open to Feedback

#3 Updated by matteo ghetta 10 months ago

I think it is a general situation for all the widgets. I tried with some of them (rotation, size) entering a field value while the same happens also for an expression entered ('solid' in the stroke style). Image attached.

#4 Updated by Nyall Dawson 10 months ago

This is by design - the data defined overrides are overrides, and the original value is used whenever the override is null. So it's important to be able to change it even when an override is in place.

#5 Updated by matteo ghetta 10 months ago

but it seems weird to me that, e.g. in case of the size, in the "main" dock panel the chance to enter a value is greyed out while, always for the size, it is available in the nested dock menu.

#6 Updated by Alessandro Pasotti 10 months ago

Maybe we could change the tooltip to tell the user that DD is active and the value will be used as a default when DD expression is null.

Also available in: Atom PDF