Hello! I'm writing a simple wave editor. My current code of the waveform viewer is based on some steps:
1. Prepare the QPixmap with the portion of the waveform (according to the scrollbar position).
2. Use the generated pixmap with QLabel->setPixmap to show the picture.
3. This code is connected with the QScrollBar::valueChanged signal.
So I have the flickering on each valueChanged. The label quickly goes black, then my image is appear.
Is there a cure or another way to draw pixmap without a blinking? If you interesting, you can look at the source code at http://eko.git.sourceforge.net/git/g...eko/eko;a=tree - the code of waveform redraw is in the document.cpp - CWaveEdit::draw_waveform function.