[Qgis-developer] Problem with Color

Martin Dobias wonder.sk at gmail.com
Tue Jan 19 06:39:46 EST 2010


Hi Michele

On Tue, Jan 19, 2010 at 12:27 PM, Michele Mammini <mamminim at yahoo.it> wrote:
> [...]
> I tried to realize the form using the QTableWidget object but an error
> occurred (TypeError: 'QColor' object is unindexable) when i tried to read
> the color.

Looks like
>          item = QTableWidgetItem(ItmColor[0])
should be
>          item = QTableWidgetItem(ItmColor)

Martin


More information about the Qgis-developer mailing list