Gradient for chunks in QProgressBar
问题 Is it possible to set a common gradient for all QProgressBar chunks? If use something like this: QProgressBar::chunk:horizontal { background: qlineargradient(x1: 0, y1: 0.5, x2: 1, y2: 0.5, stop: 0 green, stop: 1 white); margin-right: 2px; width: 10px; } the result will be http://labs.trolltech.com/blogs/wp-content/uploads/2007/06/progressbar_righttext.png but I want to obtain a one gradient, stretched to all chunks. Like this: http://labs.trolltech.com/blogs/wp-content/uploads/2007/06