Hi,

Qt 4.7. Outside the thread of code works fine:

Qt Code:
  1. QImage IMG;
  2. QPainter PAINTER;
  3. QPen PEN;
  4.  
  5. IMG.load("img.jpg");
  6. PAINTER.begin(&IMG);
  7.  
  8. PEN.setColor("#ff0000");
  9. PAINTER.setOpacity(0.30);
  10. PAINTER.setPen(PEN);
  11. PAINTER.drawText( 20, 20, "Test");
To copy to clipboard, switch view to plain text mode 

But when put into the thread drawText crash:
Qt Code:
  1. QObject::killTimers: timers cannot be stopped from another thread
To copy to clipboard, switch view to plain text mode 

If remove the method:
Qt Code:
  1. PAINTER.setOpacity(0.30);
To copy to clipboard, switch view to plain text mode 
or send it to 0 or 1 , starts to work fine.

Tried to change it to:
Qt Code:
  1. QColor clr = QColor("#ff0000");
  2. PEN.setColor( QColor( clr.red(), clr.green(), clr.blue(), 254 ) );
To copy to clipboard, switch view to plain text mode 
but not help

Any ideas?
Thanks in advance)