Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor waelfarouk's Avatar
    Join Date
    Jan 2009
    Posts
    171
    Hi,
    When writing QML and using text edit when focus the virtual keyboard is open
    but it never hide



    Please help


    Thanks

  2. #2
    Nokia Developer Moderator gnuton's Avatar
    Join Date
    Mar 2009
    Posts
    1,024
    Hi,
    You can use Harmattan TextArea component to achieve that or the solution provided in the bug QTBUG-16282.. which I don't like at all.

    More info can be found at:
    https://bugreports.qt.nokia.com/browse/QTCOMPONENTS-402

  3. #3
    Regular Contributor waelfarouk's Avatar
    Join Date
    Jan 2009
    Posts
    171
    Thank you for reply
    but the problem happen also when i use QML webview on QML webview text edit

    Regarding QML on meego
    mport com.nokia.meego 1.0
    and i use textfield instant

    but i can't solve the issue on web view

    Quote Originally Posted by gnuton View Post
    Hi,
    You can use Harmattan TextArea component to achieve that or the solution provided in the bug QTBUG-16282.. which I don't like at all.

    More info can be found at:
    https://bugreports.qt.nokia.com/browse/QTCOMPONENTS-402

  4. #4
    Nokia Developer Moderator gnuton's Avatar
    Join Date
    Mar 2009
    Posts
    1,024
    That's another bug! Temporary workaround can be found here: https://bugs.webkit.org/show_bug.cgi?id=60161

  5. #5
    Regular Contributor waelfarouk's Avatar
    Join Date
    Jan 2009
    Posts
    171
    Quote Originally Posted by gnuton View Post
    That's another bug! Temporary workaround can be found here: https://bugs.webkit.org/show_bug.cgi?id=60161
    thanks
    i will test

  6. #6
    Regular Contributor waelfarouk's Avatar
    Join Date
    Jan 2009
    Posts
    171
    Confirmed that this work around works in QML Qt
    class EventFilter : public QObject
    {
    protected:
    bool eventFilter(QObject *obj, QEvent *event) {
    QInputContext *ic = qApp->inputContext();
    if (ic) {
    if (ic->focusWidget() == 0 && prevFocusWidget) {
    QEvent closeSIPEvent(QEvent::CloseSoftwareInputPanel);
    ic->filterEvent(&closeSIPEvent);
    } else if (prevFocusWidget == 0 && ic->focusWidget()) {
    QEvent openSIPEvent(QEvent::RequestSoftwareInputPanel);
    ic->filterEvent(&openSIPEvent);
    }
    prevFocusWidget = ic->focusWidget();
    }
    return QObject::eventFilter(obj,event);
    }

    private:
    QWidget *prevFocusWidget;
    };

    in my main.cpp

    EventFilter ef;
    QmlApplicationViewer viewer;
    viewer.installEventFilter(&ef);
    Quote Originally Posted by gnuton View Post
    That's another bug! Temporary workaround can be found here: https://bugs.webkit.org/show_bug.cgi?id=60161
    thanks

Similar Threads

  1. Auto run and auto hide when switched on phone
    By sid_diu in forum Symbian C++
    Replies: 3
    Last Post: 2009-07-07, 14:19
  2. Help! How to judge a edit key on the keyboard?
    By agan1003 in forum Symbian C++
    Replies: 2
    Last Post: 2008-12-29, 11:03
  3. how to auto hide when the application is opened and not in use
    By mateen_maldar in forum Symbian User Interface
    Replies: 2
    Last Post: 2005-12-12, 11:08
  4. Keyboard auto-repeat rate
    By zibba in forum Symbian C++
    Replies: 1
    Last Post: 1970-01-01, 02:00

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