What exactly are you trying to achieve? Maybe QWidget::activateWindow() is something for you?
What exactly are you trying to achieve? Maybe QWidget::activateWindow() is something for you?
Hi again,
I want my widget which grabs the focus by mouse click to be raised.
In my application, the widgets can pop-up upon a button click. Once the particular widget(Widget 1) is popped up, it is raised and may cover some part of the most recently focused widget(Widget 2) (which has just normally lowered in the widget stack).
But when I want to raise it again by clicking on it, it grabs the focus but not raised at all. It couldn't show all of itself ( since the widget 2 covered some part of it.)
I hope I make myself clear.
Hi,
Problem solved!
The problem is in the focusing configuration of the widgets. When the ui class has a focus itself, you shouldn't set any focus to it's subwidgets.
Bookmarks