Bob Lapique wrote:
> I would like to display an instrument diagram (i.e. pipes, solenoid
> valves, sensors, etc) as a background image in a widget.
> Superimposed on that image, I would like to display component status
> (open/closed valves, sensor measurements). And I would like those
> indicators to be placed next to their representation in the background
> I can display an image in a QLabel, for example. But how can I add other
> objects in the foreground ?
An easy way to do this is to subclass QLabel, and reimplement it's
paintEvent method. Here, you first call QLabel::paintEvent, and then you
simply draw your own stuff on top.
thermiek is een keuze!
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/