简体   繁体   English

Qt中使用样式表的类似Android的文本字段

[英]Android-like text field in Qt using stylesheets

I would like to create a custom QLineEdit with an Android style such as: 我想创建一个具有Android风格的自定义QLineEdit,例如:

在此处输入图片说明

I do not want to subclass and override the paint method, I do want to do it using Qt stylesheets. 我不想继承和覆盖paint方法,我想使用Qt样式表来实现。 The goal is to paint the three blue lines of the text field. 目的是绘制文本字段的三行蓝线。

如果您对使用图像没问题,则可以使用“边框图像”样式,将前6个切片保留为空白/透明。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM