title: Qt: how to detect whether a widget is selected?
body: <p>I didn't see any signal/slot/function that could tell me whether a widget is selected by mouse?
  Is it possible to have such an function to tell me whether the current QWidget is selected? And How could I differentiate between "the current widget is selected" and "one of its child widget is selected?"</p>