[英]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.