QGIS now includes extensive support for Raster Attribute Tables (RATs).
These updates provide a new RAT interface within the QGIS API, and support is provided for RATs managed by raster data providers (GDAL), as well as for generic value attribute table (VAT) files, provided that they are stored in an auxiliary DBF sidecar file.
Much of the functionality from the Python RAT Plugin was ported into QGIS to provide native support for RATs, and a new set of GUI operations affords users the following advanced functionalities:
A gallery of these functionalities in action is available on GitHub