<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Jonah,<br>
    I not sure if this is what you want, but in QGIS 2.14 you can set
    all of these using the Layer properties under Labels, it was in
    previous versions also.<br>
    I have used this previously to set label locations & rotation
    under Placement.<br>
    I noticed also that you can also specify Shadows, Scale Based
    Viability, Backgrounds etc.<br>
    <br>
    In relation to placement and rotation, You create the fields for X,
    Y & Rotation, leaving them blank. Select layer properties and
    set the relevant fields from the drop down. Go back to the canvas,
    and while in edit mode use the label move and rotate options. once
    happy with everything, you can save it.<br>
    If you look at your table now, you will see that the X, Y &
    Rotation fields have been populated where you changed them.<br>
    <br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 12/04/2016 19:54, Jonah Crawford
      wrote:<br>
    </div>
    <blockquote
cite="mid:CABnb5sGd95JOP5OOidNmU5By+dxrFR6-ukVy505rDaFespDoUA@mail.gmail.com"
      type="cite">
      <pre wrap="">There's only a few examples using this class from the qgs python api

<a class="moz-txt-link-freetext" href="http://qgis.org/api/classQgsPalLayerSettings.html">http://qgis.org/api/classQgsPalLayerSettings.html</a>

Specifically:

<a class="moz-txt-link-freetext" href="http://gis.stackexchange.com/questions/70111/how-to-obtain-rotation-field-name-defined-in-the-labels-data-defined-section-i">http://gis.stackexchange.com/questions/70111/how-to-obtain-rotation-field-name-defined-in-the-labels-data-defined-section-i</a>

<a class="moz-txt-link-freetext" href="http://gis.stackexchange.com/questions/77870/how-to-label-vector-features-programmatically/77963#77963">http://gis.stackexchange.com/questions/77870/how-to-label-vector-features-programmatically/77963#77963</a>

It's not clear from the documentation how one would say set a color,
or transparency, shadow etc.

Could someone share some code examples ?

Jonah
_______________________________________________
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></pre>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      <b><u>Richard McDonnell</u></b><br>
      <b><small><small><small>GIS Specialist PgD GIS AssocSCSI</small></small></small></b><br>
      <b><small>OPW FRM Data Management</small></b><br>
      <b><small>52 Stephens Green, Dublin 2.</small></b><br>
      <small><small>TEL: 01 6476543</small></small></div>
  <!-- http://www.unicodetools.com/unicode/convert-to-html.php -->
<div style="font-family: Arial; font-size: 8pt;">
OPW - Ag féachaint don am atá le teacht - Ag caomhnú ón am atá thart<br/>
OPW - Looking to the future - Caring for the past<br/>
<a href="http://www.opw.ie/"><img height="76" width="494" src="http://www.opw.ie/en/media/opw-email-banner.png"/></a><br/>
Email Disclaimer: <a href="http://www.opw.ie/en/disclaimer/">http://www.opw.ie/en/disclaimer/</a>
</div>

</body>
</html>