QGIS Python Plugins Repository
Plugin: Table to Style
Reads an attribute table (usually in dbf or text format) with pixel value information and attributes and creates a new style for raster display.
The Table2Style links an attribute table with pixel value colour information with a pixel value of a raster, displaying the raster as intended. The colour information is the red, green and blue values (from 0 to 1 or 0 to 255) and, optionally, the opacity. The plugin also creates a random color scheme for each pixel value, if no file is available. A simple example data set is provided.