我想实现在label里实现自动换行,代码如下
describeLabel = new QLabel(this);
idescribeLabel->setMaximumSize(330,450);
idescribeLabel->setWordWrap(true);
idescribeLabel->setText(tr("                     Your blood pressure is normal blood pressure, continue to maintain    "));    
idescribeLabel->move(20,248);           
idescribeLabel->show();
但是问题诡异的出现了,在“                     Your blood pressure is normal blood pressure, continue”显示了自动换行了,但是continue的后面的“ to maintain    ”却消失了,没在实现自动换行...
实在是不明白是什么原因,原来傻傻的以为是setText有对字符串长度的要求,不过后来尝试去改setMaximumSize(330,450)->setMaximumSize(350,450)的时候,显示了“to”....望高手指教下