1

I often use the same styles over and over. So I have to open Properties, load style, search for the style and so on.

Is there a way to just make an own toolbar with an icon to set a style to a layer?

How would I do that?

6
  • Using default style ? (gis.stackexchange.com/questions/183533/…)
    – J.R
    Commented Jan 23, 2023 at 9:32
  • I dont want that all layers have the same style (default style). I want to set a style with just one click (on an icon).
    – Stefan
    Commented Jan 23, 2023 at 9:40
  • In both cases (using properties window or making an icon on a toolbar), you have to specify a style anyway. Commented Jan 23, 2023 at 10:36
  • I commented too fast, what I mean to suggest was to use the "Save as Default" option for layer style (open the layer properties, click the 'Style' drop down on the bottom left and 'Save as Default')
    – J.R
    Commented Jan 23, 2023 at 10:54
  • 1
    Export the source layer QML with just the symbology, then apply the script from the linked answer. Eventually hard-code the file path instead of opening the dialog box to select the file
    – JGH
    Commented Jan 23, 2023 at 12:18

1 Answer 1

1

You can copy and paste All style categories with the shortcut keys (there are no options for specific styles, e.g. only Symbology):

enter image description here

enter image description here

enter image description here

Not the answer you're looking for? Browse other questions tagged or ask your own question.