简体   繁体   中英

Android-like text field in Qt using stylesheets

I would like to create a custom QLineEdit with an Android style such as:

在此处输入图片说明

I do not want to subclass and override the paint method, I do want to do it using Qt stylesheets. The goal is to paint the three blue lines of the text field.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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