Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User schroffi's Avatar
    Join Date
    Jan 2011
    Posts
    40
    Hello,
    after starting and closing a modal Dialog i am not able to click in a QLineEdit field to change the value.

    QLineEdit* qEditName = new QLineEdit(this);

    is working fine.
    but after some interaction i show a Fullsceen Dialog:

    SpringjamTellDialog *sjDialogObject = new SpringjamTellDialog(qHashDaten.value("t" + strResStr));
    sjDialogObject->setAttribute(Qt::WA_QuitOnClose);

    sjDialogObject->exec()

    and when i come back.. the QLineEdit is somehow deactivated to edit.
    thx
    Paul

  2. #2
    Nokia Developer Expert Fuzzbender's Avatar
    Join Date
    Feb 2008
    Posts
    183
    Just out of curiosity, why are you defining that attribute (Qt::WA_QuitOnClose)?
    It *should* quit after the dialog is dismissed, but apparently it can't (either bug in Qt, or in your app). This might be the root cause for the inactive QLineEdit.

  3. #3
    Registered User schroffi's Avatar
    Join Date
    Jan 2011
    Posts
    40
    I set this attribute (Qt::WA_QuitOnClose) because it was used in the examüley i have. and i come back to the QWidget i used before - for example the buttons are working and so on but i cannot step into the QLineEdit.
    I am using Qt 4.6 with Nokia Qt SDK 1.0
    THx paul

  4. #4
    Nokia Developer Expert Fuzzbender's Avatar
    Join Date
    Feb 2008
    Posts
    183
    If you don't need that attribute, take it away. If that doesn't help your app, it sounds like the focus is broken.

  5. #5
    Registered User schroffi's Avatar
    Join Date
    Jan 2011
    Posts
    40
    Hmm i have tried to use setFocus() to the Qwidget, but nothing changed

  6. #6
    Registered User schroffi's Avatar
    Join Date
    Jan 2011
    Posts
    40
    can you tell me what do you mean when you say "the focus is broken"?
    i cannot even set the Focus using the setFocus method.
    thx paul

  7. #7
    Nokia Developer Expert Fuzzbender's Avatar
    Join Date
    Feb 2008
    Posts
    183
    It was a comment that the focus probably goes to incorrect place. And the problem might be inside Qt itself (please, raise an issue to http://bugreports.qt.nokia.com if you think Qt is the culprit here; attaching a test app to the report makes the fixes appear faster).

    Have you already removed the attribute? Does it still behave in the same way?

Similar Threads

  1. Modal Dialog key events causing dialog to exit
    By roland.berry in forum Symbian C++
    Replies: 0
    Last Post: 2007-07-19, 10:29
  2. modal dialog error KERN-EXEC 3
    By jawir212 in forum Symbian C++
    Replies: 1
    Last Post: 2006-07-25, 08:49
  3. CAknSettingItemList & modal dialog
    By pahmed in forum Symbian User Interface
    Replies: 0
    Last Post: 2005-08-24, 09:24
  4. modal dialog
    By andrei_s in forum Symbian C++
    Replies: 0
    Last Post: 2004-12-13, 18:45

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved