A
A
Alexander Rublev2017-07-13 18:50:22
Python
Alexander Rublev, 2017-07-13 18:50:22

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.
Vm67KLRUDEqv72.jpg
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

2 answer(s)
T
TriKrista, 2017-07-13
@Meller008

If using QWidget, override QWidget::paintEvent(QPaintEvent *event)

I
Ighor July, 2017-07-13
@IGHOR

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 question

Ask a Question

731 491 924 answers to any question