I'm trying to set properties of QgsVectorLayer using QGIS 3. I want to put labels with "Offset from point" and define "Offset X" and Offset Y". I saw on the documentary that there is a class "setQuadrantPosition" from QgsPalLayerSettings but i don't know how to use it. Here is my code :
layer_settings = QgsPalLayerSettings()
layer_settings.fieldName = "Name"
layer_settings.enabled = True
layer_settings = QgsVectorLayerSimpleLabeling(layer_settings)