Jean-Marc Lasgouttes wrote:
"Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes:
Abdelrazak> I am far from a Guru but I guess your patch is not
Abdelrazak> complete. Did you define setFocus as a slot?
Sorry, I missed a file. Here is the complete file.
Should I have declared setFocus in the public slot: section?
If it used as a slot yes. But I haven't found any connection to this
slot in qt3/
Abdelrazak> Or is it call somewhere within the code? Not sure about
Abdelrazak> Qt3 but QWidget::setFocus() is slot in Qt4. You might want
Abdelrazak> to use an event instead:
Abdelrazak> void QWidget::focusInEvent (QFocusEvent * event)
Abdelrazak> Not sure about that though...
I thought about that too, but it seemed to me that setFocus was higher
level, and thus more suitable.
But setFocus has to be called... either explicitly or via a signal/slot
connection. I don't see that any call to it in your patch and I didn't
find a call to QtView::setFocus() elswhere.
JMarc