×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Nov 2005
    Posts
    5

    Question Softkeys of QMessageBox dimmed upon returning to foreground.

    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();
    if (bgc)
    {
    bgc->MakeVisible(ETrue);
    bgc->DrawNow();
    }

    But this didn't solve the problem either.

    Anyone have any suggestions?

  2. #2
    Registered User
    Join Date
    Nov 2005
    Posts
    5

    Re: Softkeys of QMessageBox dimmed upon returning to foreground.

    Anyone know how to control the softkeys (remove the dimming) after an app returns to the foreground?

Similar Threads

  1. why softkeys disappear when background/foreground action?
    By yjbin in forum Symbian User Interface
    Replies: 5
    Last Post: 2009-01-16, 13:39
  2. Knowing when you get dimmed...
    By thewisemonkey in forum Symbian User Interface
    Replies: 2
    Last Post: 2004-07-21, 06:12
  3. Using dimmed controls
    By GENERAL_INFO in forum Symbian User Interface
    Replies: 1
    Last Post: 2001-12-05, 20:12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×