字符串过长设置QLineEdit控件从左往右显示最前端文本
QLineEdit控件显示文本过长,控件默认显示字符串末尾字符,字符串前端字符不显示如需要QLineEdit控件显示前端字符,则需要在QLineEdit->setText(QString);之后设置光标位置为0,即:QLineEdit->setCursorPosition(0);...
·
QLineEdit控件显示文本过长,控件默认显示字符串末尾字符,字符串前端字符不显示
如需要QLineEdit控件显示前端字符,则需要在QLineEdit->setText(QString);
之后设置光标位置为0,即:QLineEdit->setCursorPosition(0);
更多推荐



所有评论(0)