PDA

View Full Version : Highlighting a set of controls on mouse hover.



GAURAV PANT
1st March 2014, 08:47
Hi
I am developing an existing GUI application which is developed in C# to QT.
I want to highlight a set of controls i.e one check box and a push button on mouse hover i.e when mouse is over any of these controls then both check box and push button both gets highlited or a round box will highlight both of them.
I c# StackPanel is used to group items together. Is there any stackpanel equivalent in QT or is there any other way to highlight group a set of controls.
Thanks.

anda_skoa
1st March 2014, 14:40
QWidget with a QVBoxLayout or QHBoxLayout, depending on which orientation you want the child widgets to be arranged in.

Cheers,
_

d_stranz
1st March 2014, 17:22
Layouts won't exhibit the highlighting behavior the OP is asking for. QGroupBox might be the closest thing to this since it provides a border, but I am not sure if it supports enter / leave highlighting by default or if you need to derive from it and override mouse enter and leave even handlers in order to implement highlighting.