PDA

View Full Version : Need a Label Below the toolbar buttons



merry
18th March 2010, 06:37
Hi,

I need a common label for all my five toolbuttons , just below the five buttons, to be precise below the third button.
What i want is on mouse hover of first button the label of third will show the name of first button.
how can i achieve this .
QT::setButtonStyle is of no help........

aamer4yu
18th March 2010, 07:42
Thats a lengthy task I guess.
You will need to create a QLabel, add it in a vertical layout with the toolbuttons.
Override the enter and leave events for the tool buttons and emit signal to update the text of the QLabel.

Shorter way -
Why dont you use QToolTip or QStatusTip ?? :rolleyes: