Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better stroke width defaults #16554

Open
qgib opened this issue Apr 17, 2013 · 4 comments
Open

Better stroke width defaults #16554

qgib opened this issue Apr 17, 2013 · 4 comments
Labels
Feature Request Symbology Related to vector layer symbology or renderers

Comments

@qgib
Copy link
Contributor

qgib commented Apr 17, 2013

Author Name: Andreas Neumann (@andreasneumann)
Original Redmine Issue: 7632

Redmine category:symbology


It would be nice if the default stroke width would be round value, e.g. 0.2 or 0.3 or 0.25 and not the weird value of 0.26

In addition it would be nice if the step width for the spin box would increment in smaller steps, e.g. +/- 0.2 or 0.1

@qgib
Copy link
Contributor Author

qgib commented Apr 17, 2013

Author Name: Larry Shaffer (Larry Shaffer)


Hi Andreas,

+1 for this change. However, I think it would be good to push this over to a user setting at the app and project levels. The step increment is really a function of the units chosen and the relative size of the item, i.e. a step for meters should be different than one for feet or degrees, etc. and the step for a stroke size would be different than that for a symbol width/height, etc. Similarly, it would be good to have the option to set the default size for common items, like stroke/border and width, but also possibly have that be relative to the known units.

Such user settings could be referenced in a container class and custom 'units' combobox widget. Then, for example, buddy spinboxes could be registered with the combobox, e.g. mCombobox->regSpinBox( mSpinBox, 'border' ), where border would be an enum value. Once registered, a change of units would auto-update the spinbox's step increment, and possibly its precision and min/max values, all relative to what a user has in settings.

Also, the settings container class could be queried for sensible defaults, e.g. unitSizeDefaults.getDefault( 'border', 'meters' ), where border and meters would be enum values relative to units either those set in combobox, or from QSettings.

Just an idea.

@qgib
Copy link
Contributor Author

qgib commented Apr 18, 2013

Author Name: Andreas Neumann (@andreasneumann)


Hi Larry,

I agree - it really depends on the units and should be user-defineable. I like your idea.

Then if the US people could switch to the metric system it would also make things easier ;-)

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2017

Author Name: Giovanni Manghi (@gioman)


  • easy_fix was configured as 0

@qgib qgib added Feature Request Symbology Related to vector layer symbology or renderers labels May 24, 2019
@kannes
Copy link
Contributor

kannes commented Sep 23, 2019

When working on this, do mind the weird performance shown in https://oslandia.com/2019/06/21/qgis-3-and-performance-analysis/ where a line width above 0.26 was much slower.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Symbology Related to vector layer symbology or renderers
Projects
None yet
Development

No branches or pull requests

2 participants