I have see this topic (How to change the color of a vector layer in pyQGIS?) but I'm looking for get the color not to change.

How I can resolve my problem ?

closed as off-topic by underdark Feb 18 '17 at 22:30

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking help to debug/write/improve code must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Providing a clear problem statement and evidence of a code attempt will help others to help you. See: How to create a Minimal, Complete, and Verifiable example." – underdark
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    Would you be able to edit your Question to provide more details about what you are trying to do, please? – PolyGeo Feb 18 '14 at 9:50
  • It's ok, I have solve my problem with : layer.rendererV2().symbol().color() – user2998243 Feb 18 '14 at 9:53
  • 5
    You could still improve your question and post your own answer. You came here looking for help and so are other people. – tobias47n9e Feb 18 '14 at 13:16

Browse other questions tagged or ask your own question.