Jean-Marc Lasgouttes wrote:
OK, I have a new idea for this bug, but by knowledge of Qt is too weak
to be sure how to do this. What I want to do is run updateToolbars
whenever the window gets the focus, so that icons are correctly
enabled.

Here is the patch I came up with. Questions:

1/ Bennett, Edwin, does it work?
2/ Qt gurus, does it make sense?

I am far from a Guru but I guess your patch is not complete. Did you define setFocus as a slot? Or is it call somewhere within the code? Not sure about Qt3 but QWidget::setFocus() is slot in Qt4. You might want to use an event instead:

  void QWidget::focusInEvent (QFocusEvent * event)

Not sure about that though...

Abdel.

Reply via email to