So I'm writing some script for QGIS 1.8 and I'm unable to resolve this error.
from qgis.core import * pallyr = QgsPalLayerSettings()
The second line gives me error that QgsPalLayerSettings is not defined. When I do it in QGIS 2 or higher then i don't get any errors and it imports this class. Somehow I have to stick to QGIS 1.8. How can this be resolved?