I have an application in which I have a settings dialog. The dialog is application modal. The dialog is composed of a tabbed widget.
In the dialog I have the usual stuff; QLabels, QComboBoxes, QPushButtons, QLineEdits. I also have an empty space in the dialog consisting of a QLabel. What I want to do is this: When the mouse cursor enters an object area (QLabel, QPushButton etc...), I would like the empty QLabel space to show the whatsThis of the object.
I wouldn't want to derive my own classes for all the objects in the dialog just to be able to implement enterEvent() and leaveEvent(). So is there another "easy" way to go about this? I guess I could probably somehow keep track of the mouse movements and constantly test whether the mouse is inside which widget, but that certainly doesn't seem like a simple solution.
Bookmarks