Using QT 4.6.3 and 4.7.1, the softkeys of a QMessageBox remain dimmed (greyed) when the application is brought back into the foreground. The QMessageBox gets created when the app is in the background and then the user brings the app to the foreground. The softkeys are active but visually they are dimmed, giving the user the impression that the softkeys are not active.
Does anyone know how one might solve this? I've tried several approaches without success:
I have sublcassed QMessageBox and tried overriding the event methods (event(), showEvent(), paintEvent()) but these methods surprisingly aren't called when the app returns to the foreground.
I have subclassed the QApplication in order to override symbianEventFilter() and track events EEventFocusGained, EEventFocusLost. I then used this code, which I got from this forum:
CEikButtonGroupContainer* bgc = CEikButtonGroupContainer::Current();
But this didn't solve the problem either.
Anyone have any suggestions?