qt - Getting chunk colour of ProgressBar -


i have problems getting colour of progress bar's chunk , have found nothing in documentation.

for example:

progbar->palette().color(qwidget::foregroundrole()) gives me foreground colour chunk?

so, how can colour of progress bar's chunk if had no style sheets installed it? there solution palettes?

doing tests find solution. colour of qprogressbar chunk palette's highlight role, code going like: progbar->palette().color(qpalette::highlight);


Comments