开发者

QT: How to change the color of the progressbar

开发者 https://www.devze.com 2022-12-21 06:26 出处:网络
i am having one videoeditorview and one progressbar is there with blue color . But how i will change the progressbar color to red when i clicked trim start and it will return to blue开发者_StackOverfl

i am having one videoeditor view and one progressbar is there with blue color . But how i will change the progressbar color to red when i clicked trim start and it will return to blue开发者_StackOverflow中文版 when i will click the trim endbutton in QT


This is from the Qt Documentation

You can style the ::chunk part explicitly to change background color.


EDIT: I misunderstood the question. You are talking about something like the clip selector/editor in Adobe Premiere. To do something like this I would just create a custom widget, and handle the drawing yourself. It would not be too hard. You will need to subclass QWidget, then reimplement the paintEvent(), then also probably the mousePressEvent(), mouseReleaseEvent(), and mouseMouseEvent().

0

精彩评论

暂无评论...
验证码 换一张
取 消