Results 1 to 12 of 12

Thread: Is there a way to force QLineEdit to start accepting input with Hebrew as default

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Is there a way to force QLineEdit to start accepting input with Hebrew as default

    Isn't it easier to switch the keyboard layout on focusInEvent and switch it back on focusOutEvent?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. #2
    Join Date
    Jan 2006
    Posts
    52
    Thanks
    12
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Is there a way to force QLineEdit to start accepting input with Hebrew as default

    Sorry for being obtuse, but how do I switch the keyboard layout?

    P.S in QApplication I found two function that might help: keyboardInputDirection() and keyboardInputLocale() but unfortunately they have no set equivalent.

  3. #3
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Is there a way to force QLineEdit to start accepting input with Hebrew as default

    I never have done that myself and on linux it might be complicated because it depends on the graphical environment (KDE, Gnome, ...).

    For windows you can have a look at http://msdn.microsoft.com/en-us/libr...=VS.85%29.aspx: ActivateKeyboardLayout, GetKeyboardLayout and GetKeyboardLayoutList.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Is there a way to force QLineEdit to start accepting input with Hebrew as default

    On KDE there is probably some dbus call that will do the trick.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. QLineEdit and input mask
    By tpf80 in forum Qt Programming
    Replies: 7
    Last Post: 9th May 2014, 19:47
  2. How to use input method with QLineEdit in HP-UX (Qt4.5)
    By justalittle in forum Qt Programming
    Replies: 0
    Last Post: 11th March 2010, 08:22
  3. [SOLVED] QLineEdit Input
    By QbelcorT in forum Qt Programming
    Replies: 0
    Last Post: 24th November 2008, 04:37
  4. how to force QLineEdit not null ?
    By lovelypp in forum Qt Programming
    Replies: 3
    Last Post: 25th July 2008, 09:26
  5. QLineEdit check Input
    By raphaelf in forum Newbie
    Replies: 1
    Last Post: 17th August 2006, 14:32

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.