×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor
    Join Date
    Dec 2010
    Posts
    228

    Question How to open the keyboard not in full screen??

    Hi all,
    i want to ask how to open the keyboard not full screen,
    usually when i try to write anything in qLineEdit for example , the keyboard is opening in full screen mode
    i noticed on symbian^3 (when writing a message or in whatsapp application) , the keyboard is opening on the half of the screen and i can still visualize my UI.
    so is there a way to accomplish that in Qt?
    Thank you
    Rondo

  2. #2
    Nokia Developer Expert
    Join Date
    Feb 2008
    Posts
    183

    Re: How to open the keyboard not in full screen??

    In Qt4.7.4 there is a new QApplication level flag for this.
    This release of Qt also tries to ensure that your input text item is visible above the virtual keyboard (only supported for QGraphicsViews and derived classes, such as QML declarative views; qwidgets are not supported for this automatic mode, though you can still activate splitview functionality with them).

    Internet is full of stories how to do activate splitview keyboard with native code in Symbian Anna and using previous releases of Qt.

  3. #3
    Registered User
    Join Date
    Dec 2009
    Location
    Switzerland
    Posts
    121

    Re: How to open the keyboard not in full screen??

    Hi FuzzBender,

    I am trying to make a simple app but it doesn't work. I am working with 4.7.3 and it seems that this flag is already present (I wrote it in main.cpp):

    QCoreApplication::setAttribute(Qt::AA_S60DisablePartialScreenInputMode, false);

    But the keyboard is never splitted.

    I have a QLineEdit in my mainwindow form. But when I click on the editbox, the keyboard is always in fullscreen mode.
    I discovered Qt in the summer 2010, it was sooo easy and nice to use, that I begun to write some apps.
    Thank you Nokia, for giving me this possibility!

  4. #4
    Nokia Developer Champion
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: How to open the keyboard not in full screen??

    Other people are also having same issue with Qt 4.7.3.

  5. #5
    Nokia Developer Expert
    Join Date
    Feb 2008
    Posts
    183

    Re: How to open the keyboard not in full screen??

    Qt 4.7.3 does not support the splitview yet (the flag is available, but it has no implementation). In Qt 4.7.4, it should work (but no auto-translation of QWidgets, i.e. app needs to ensure itself that the input widget is above the keyboard).

    To use partial keyboard in 4.7.3, you need to use native APIs. See for example http://qtsource.wordpress.com/2011/0...en-text-input/

  6. #6
    Registered User
    Join Date
    Dec 2009
    Location
    Switzerland
    Posts
    121

    Re: How to open the keyboard not in full screen??

    Thank you Fuzz,
    I made a simple app and it works. There is a simple way to implement it. I rewrote the LineEdit function (focusInEvent):

    EditX.h:
    Code:
    #ifndef EDITX_H
    #define EDITX_H
    
    #include <QLineEdit>
    
    #if defined(Q_OS_SYMBIAN)
    #include <aknedsts.h>
    #include <coeaui.h>
    #include <coemain.h>
    #include <w32std.h>
    #define EAknEditorFlagEnablePartialScreen 0x200000
    #endif
    
    class editX : public QLineEdit
    {
        Q_OBJECT
    public:
        explicit editX(QWidget *parent = 0);
    
    signals:
    
    public slots:
        void focusInEvent(QFocusEvent *);
    
    };
    
    #endif // EDITX_H
    editX.cpp:
    Code:
    #include "editx.h"
    
    editX::editX(QWidget *parent) :
        QLineEdit(parent)
    {
    }
    
    void editX::focusInEvent(QFocusEvent *e)
    {
    #if defined(Q_OS_SYMBIAN)
        MCoeFepAwareTextEditor *fte = CCoeEnv::Static()->AppUi()->InputCapabilities().FepAwareTextEditor();
        // FepAwareTextEditor() returns 0 if no text editor is present
        if (fte)
        {
            CAknEdwinState *state = STATIC_CAST(CAknEdwinState*, fte->Extension1()->State(KNullUid));
            state->SetFlags(state->Flags() | EAknEditorFlagEnablePartialScreen);
        }
    #endif
    }
    And in the mainwindow, I created a editX instead of a QLineEdit object. Now it works

    Thank you!
    I discovered Qt in the summer 2010, it was sooo easy and nice to use, that I begun to write some apps.
    Thank you Nokia, for giving me this possibility!

  7. #7
    Nokia Developer Expert
    Join Date
    Feb 2008
    Posts
    183

    Re: How to open the keyboard not in full screen??

    Nice, Tiger54. Have a nice splitview!

Similar Threads

  1. Disable full screen qwerty option in virtual keyboard
    By kamalakshan in forum Symbian User Interface
    Replies: 2
    Last Post: 2011-05-04, 10:44
  2. Replies: 6
    Last Post: 2010-08-28, 10:01
  3. [moved] Force full screen keyboard
    By tamhanna in forum Symbian User Interface
    Replies: 2
    Last Post: 2009-12-20, 18:06
  4. Nokia 5800 full keyboard display
    By eyalmnm in forum Mobile Java General
    Replies: 3
    Last Post: 2009-05-14, 14:57
  5. Replies: 8
    Last Post: 2007-06-19, 13:30

Posting Permissions

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