thank for this;
but I need also rotate it;
so how to do this?
Qt Code:
  1. QString* textLabel = &s;
  2. p.drawText(50,50, textLabel, Qt::AlignCenter );
  3.  
  4. mylabel.cpp(106): error C2664: 'void QPainter::drawText(int,int,const QString &,int,QPainter::TextDirection)' : cannot convert parameter 3 from 'QString *' to 'const QString &'
To copy to clipboard, switch view to plain text mode