QLineEdit的背景图像 [英] Background-image for QLineEdit

查看:858
本文介绍了QLineEdit的背景图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何为 QLineEdit 设置背景图片?以下样式表不起作用

How to set background image for QLineEdit? The following style sheet doesn't work

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);
}

这篇关于QLineEdit的背景图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆