PDA

View Full Version : How to drwa a line which joins two label



gauravg
29th October 2011, 05:55
hi all
how to draw a line which joins two labels and color the line and labels colors changes according some situations or conditions,




thanks with regards:
gauravg

Santosh Reddy
30th October 2011, 03:00
Are these QLabels? then you can implement the line painting on a new custom widget and add it to the parent of QLabel. Note that QLabel(s) should be in a layout, but the new custom widget should not be in the layout