Answer the question
In order to leave comments, you need to log in
How to make a strip with colored marks in QT?
Hello.
Most likely the question was not clear. I'll just show you in the picture.
Prompt as it is possible to implement something similar in QT.
I want to make the bar be the time of the video, and the colored marks will show where the movement was.
Answer the question
In order to leave comments, you need to log in
If using QWidget, override QWidget::paintEvent(QPaintEvent *event)
The most convenient way to draw on QPixmap is with QPainter.
Save QPixmap and redraw on changes or resize.
You can shove a QPixmap into a QLabel and put it anywhere.
But if the changes are too frequent, then you should use the solution from TriKrista
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question