thank for this;
but I need also rotate it;
so how to do this?
p.drawText(50,50, textLabel, Qt::AlignCenter );
mylabel.cpp(106): error C2664: 'void QPainter::drawText(int,int,const QString &,int,QPainter::TextDirection)' : cannot convert parameter 3 from 'QString *' to 'const QString &'
QString* textLabel = &s;
p.drawText(50,50, textLabel, Qt::AlignCenter );
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
Bookmarks