[英]How to set text color in QLineEdit when background image is set for QlineEdit
[英]Background-image for QLineEdit
如何为QLineEdit
设置背景图片? 以下样式表不起作用
QLineEdit {
background-image:url(:/images/13.png);
}
QLineEdit {
border: 1px solid #000000; //image work with this line and didn't work with out))
image: url(:/images/13.png);
}
更好的解决方案是
#fileFilter
{
background: url(/Users/karelhladky/Pictures/Icons/famfamfam/icons/emoticon_grin.png);
// there is no need add border property
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.