Didac Perez Parera
Didac Perez Parera

Reputation: 3834

Android-like text field in Qt using stylesheets

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

enter image description here

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.

Upvotes: 0

Views: 329

Answers (1)

DCR
DCR

Reputation: 36

If you're alright with using an image you could use a 'border-image' style and leave the top 6 slices blank/transparent.

Upvotes: 1

Related Questions