layout - Qt: How to be notified when a row is hovered in a QFormLayout? -


I have a QFormLayout where the left widgets are QLabels and there are different types of correct widgets when the mouse has a form line someone I also want to inform me if I enter the section , so I can display the description of that row in my status bar.

Currently I have a Qualable subclass called the Hauvrebal label that displays "mouse-oriented" and "mouse left" signals (emitted in the pre-release of my interview and request aven). It works, but:

  • The margins between the rows do not trigger the signal
  • (left-aligned) does not trigger the location on the left of the label
  • signals

  • widgets do not trigger signal on the right because I do not bother subclass all

Qt-blessed attitude for this kind of problem?

Some things that I can think of:

  1. Create a widget for the parent of the formulas that all the mouseover events (mouse tracking?) And checks that the mouse is in a row Has entered.
  2. Convert formatting to a QVBoxLayout, and create rows in a few custom widgets, such as formrovolites that handle both hover events and form-alignment content.

Neither is very good.

I have the first two solutions quite good, and with some work it is in the reusable subclass of QFormLayout Can be separated.


Comments