Setting this property makes the line edit display a grayed-out placeholder text as long as the text() is empty and the widget doesn’t have focus.
方法一
ui->lineEdit->setPlaceholderText("hello furong");
方法二
效果
Setting this property makes the line edit display a grayed-out placeholder text as long as the text() is empty and the widget doesn’t have focus.
方法一
ui->lineEdit->setPlaceholderText("hello furong");
方法二
效果
上一篇:Qt背景不显示问题
SpringBoot自定义starter
自定义安装微软 365
QLineEdit其实是支持动态显示删除按钮
自定义ViewGroup和自定义View的步骤差不多。自定义ViewGroup需要重写onMeasure方法测
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M