Got the answer:
Qt Code:
  1. qDebug()<<image.colorTable().size();/*!< "2" -> white & black */
  2. image.setColor(0,Qt::transparent);/*!< Black -> transparent*/
  3. image.setColor(1,qRgb(255,0,0));/*!< White-> red*/
To copy to clipboard, switch view to plain text mode 

Sorry for bothering you.

Kacper