I am having problems creating a multilayer line symbol with this code :
symbol = QgsLineSymbolV2.createSimple({})
symbol.deleteSymbolLayer(0)
symbolLine = QgsSimpleLineSymbolLayerV2()
symbol.appendSymbolLayer(symbolLine)
symbolArrow = QgsMarkerSymbolV2.createSimple({})
symbolArrow.deleteSymbolLayer(0)
symbolArrowLayer = QgsSimpleMarkerSymbolLayerV2()
symbolArrow.appendSymbolLayer(symbolArrowLayer)
symbolLineArrow = QgsMarkerLineSymbolLayerV2()
symbolLineArrow.setSubSymbol(symbolArrow) # Causes crash !!!
symbol.appendSymbolLayer(symbolLineArrow)
Is there something wrong in this code ? Has anybody already had this issue ?