[Interest] [Qt Labs Controls 5.6] Customization recommendations

Nikita Krupenko krnekit at gmail.com
Fri Mar 11 01:09:09 CET 2016


2016-03-10 17:19 GMT+02:00 Ronan Jouchet <ronan.jouchet at cadensimaging.com>:
>    -> That sounds nice for users wanting total control over the complete
>       style. But suppose instead I'm mostly happy with Material and
>       only want to *override some attributes*, much like I would do
>       with CSS in a webapp, and as opposed to wholly defining control
>       sub-items {label, background, ...}.
>
>       Is there a way to do that? Following the documentation sentence
>       quoted above, I'd just copy the whole `material` folder and start
>       tweaking, but then I'd have to merge my tweaks with upstream
>       changes brought by each Qt release.
>       Correct? Is this the workflow you have in mind?

You don't need to copy anything, you can just use button with Material
theme and override it's background or label. You can also tweak some
properties, like font or padding, that is used for creating and
positioning default background and label.

Also, note, that Qt Labs Controls is a TP in 5.6. The label already
became contentItem in 5.7.

> 3. With upcoming desktop support in mind, would it be interesting to
>    add a third customization axis (alongside theme & accent) called
>    "density" that would adjust paddings like the [GMAIL] feature does?
>
>    For tablet+desktop apps where exact platform style conformance is not
>    a goal and thus where a common UX / controls set is acceptable, it
>    could provide widget size "responsiveness" to fit the platform
>    expected input precision. That's what I was thinking to implement
>    when I stumbled upon my question 2.
>
>    Does it make sense / has such a feature already been discussed?

There is opened BR: https://bugreports.qt.io/browse/QTBUG-51109



More information about the Interest mailing list