Hi 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 when i will click the trim endbutton in QT
+3
A:
This is from the Qt Documentation
You can style the ::chunk
part explicitly to change background color.
Rupert Jones
2010-02-21 15:07:14
thanks a lot...
Latha
2010-02-22 16:33:16
but the thing is that the whole color of the progressbar is etting changed and i need the color should change when i clicked the start button chane to previous color when i clicked the end button.
Latha
2010-02-22 16:35:06
@Latha: You can change the color dynamically? What do you mean. two colors at once, or a color depending on the current state of the program? Take a look at the function `QWidget::setStyleSheet`
Rupert Jones
2010-02-24 08:26:09
since this is not really an answer to your question (it seems that this was by mistake) I suggest to remove this answer.
Rupert Jones
2010-02-25 08:52:17
A:
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().
JimDaniel
2010-02-23 17:51:41