M
M
maaGames2021-12-16 13:53:50
Qt
maaGames, 2021-12-16 13:53:50

How to make a complex QPushButton form correctly?

How to make complex button shapes correctly, for example, as in the Qt installer?
61bb19c891924333368158.png

Through CSS, you can make rounding or change the thickness of the frame, but how do more complex things?
It seems obvious to draw a button using png with transparency, but then you need to make a separate png for each button size? How to do it right?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
maaGames, 2021-12-16
@maaGames

Can be done with 9-patch pictures

border-image:  url(":/button.9.png");
border-width: 5px;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question