K
K
Kirill Gusarev2021-08-29 17:24:59
css
Kirill Gusarev, 2021-08-29 17:24:59

How to partially specify a property in CSS?

Hello. I want to partially change the frame (border) of a QComboBox widget in QtCreator (Qt 6, C++) using stylesheet.
Like here, I want, for example, to change only the thickness of the frame, and leave the rest as it is, by default. I try something like this: But it doesn't work. Is there any way to implement this at all?
border: 4px initial initial;

Answer the question

In order to leave comments, you need to log in

3 answer(s)
J
Jacob E, 2021-08-30
@kaka888

Is there any way to implement this at all?

No, the style is always completely replaced.

G
galkinhtml, 2021-08-29
@galkinhtml

border-width: 4px

A
Anton Shamanov, 2021-08-29
@SilenceOfWinter

https://doc.qt.io/archives/qt-4.8/stylesheet-examp...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question