void threadFunc(){ QImage img(100,100,..._RGB16); QPainter pnt(&img); pnt.drawText(QPoint(...),"xxx");}
C++ (Qt)void DrawThread::run(){ QImage img( 300, 300, QImage::Format_RGB16 ); QFont font( "Arial", 12 ); QPainter p( &img ); p.setFont( font ); p.drawText( QPoint( 10, 10 ), "Test text" ); p.drawLine( QPoint( 20, 20 ), QPoint( 280, 280 ) );}