QFont ft;
QFontMetrics metricsa(ft);
QString Y_text = "一二三四";
int yTextHeight = metrics.width(Y_text);
painter.drawtext(20,lineY-maxHeight,30,yTextHeight,
x y width height
Qt::TextSingleline|Qt::Textwordwrap,Y_text)
flag string
QFont ft;
QFontMetrics metricsa(ft);
QString Y_text = "一二三四";
int yTextHeight = metrics.width(Y_text);
painter.drawtext(20,lineY-maxHeight,30,yTextHeight,
x y width height
Qt::TextSingleline|Qt::Textwordwrap,Y_text)
flag string