PDA

View Full Version : print a QLabel over a QWidget



franco.amato
18th March 2010, 01:26
Hi to all,
I have a QWidget showing an audio waveform. I would display over such widget a QLabel indicating the elapsed time from the moment the user
press play.
How can I show such label? For example at position 20, 20.
The value of the timer is updated depending of the time_position in the sound.

Regards,
Franco

aamer4yu
18th March 2010, 04:22
You can make the label a child of the QWidget, and then set its position by QWidget::move.
Dont set the label in a layout.

nish
18th March 2010, 04:42
Or check the QToolTip class... it is best suited for such small info.