YuriyRusinov
13th October 2006, 14:30
Hello, All !
I have a form with many childs in layouts. I have to get focus event for 2 QListView * objects of them using event handlers for main form only ? These objects are situated in multilevel layouts and its subclassing is not desirable, because the form will be segmentation fault dropped. I tried
Form:: Form (QWidget *parent)
{
...
listview1->setFocusProxy (this);
listView2->setFocusProxy (this);
...
}
and reimplement Form::focusInEvent (QFocusEvent * event) but it is not work, what I have to do for working ?
Best regards,
Yuriy Rusinov.
I have a form with many childs in layouts. I have to get focus event for 2 QListView * objects of them using event handlers for main form only ? These objects are situated in multilevel layouts and its subclassing is not desirable, because the form will be segmentation fault dropped. I tried
Form:: Form (QWidget *parent)
{
...
listview1->setFocusProxy (this);
listView2->setFocusProxy (this);
...
}
and reimplement Form::focusInEvent (QFocusEvent * event) but it is not work, what I have to do for working ?
Best regards,
Yuriy Rusinov.