I have a dialog with two labels, side by side. Each has an image associated with it.
There is a RubberBand for each label. I want the rectangles associated with the rubber bands to be the same height, but the starting point to be independent in the two labels.
I created the dialog in Designer, and defined a class that inherits from it.
So, in this class, I can provide implementations of mousePressEvent, mouseMoveEvent, and mouseReleaseEvent for the dialog. This works, but I can't figure out how to provide a unique version for each of the two labels in the dialog.
I can "get there" (I think), by figuring out where each label is in the widget and associate the event with the appropriate label. But, it would probably be simpler to have a separate implementation of the event handlers for each label in the dialog. (And I see me needing to do this as I get better at Qt).
Can this be done?
Thanks,
Dave Thomas
Bookmarks