Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1107331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T01:55:19+00:00 2026-05-17T01:55:19+00:00

I am stuck in the middle of this problem for a week or so

  • 0

I am stuck in the middle of this problem for a week or so now, I found a similar question posted on Qt for Symbian forum, but no body answered it.

The problem is simply that when I run the application, well it is still not an application just a prototype :), either on the emulator or on a real device, and use the physical QWERTY keyboard to type normal characters, in this case the device is in landscape orientation, the function keyPressEvent is not called, but it is called if I pressed keys such as enter, backspace, different arrows and the action key. Also this happens if I run the application on the emulator and used the development machine keyboard to type.

On the other hand, if I used the on screen mini QWERTY keyboard on the emulator, or used the development machine keyboard to type and the emulator is in portrait orientation, the keyPressEvent function get called.

Now to be more specific, I have a class that inherits from QTextEdit, I override the functions keyPressEvent and focusInEvent inside it, also I call the function setFocusPolicy inside the constructor of the class, but nothing seems to solve the problem.

Also I have to say that the code I am trying on is a modified version of the example customcompleter, and found that this issue also happens with the original code.

So guys, any one has any idea about how to solve this issue?

Regards.

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T01:55:20+00:00Added an answer on May 17, 2026 at 1:55 am

    You might check keyReleaseEvent and/or monitor all events by overriding event(QEvent*) and verifying exactly what events are indeed being generated. A different suitable event might be being generated.

    However, the behavior you’ve described really sounds like a bug to me. You might check the Qt Bug Tracker and/or file a bug report.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im stuck with this little project in C# but basically my problem is this:
This is probably the worst question I have ever posted on Stack Overflow but
I understand this is a basic question... but I have been stuck on it
Ok, I'm a little stuck on this one. I think my problem lies with
Actually I am stuck in middle of some mysql code. Can anyone suggest a
I was stuck in the middle of no such table error while I created
Been stuck on this for ages. Currently learning Django and done some bits on
I stuck with problem of mail application , i am developing a website for
im stuck with a problem im basically trying to create a function where I
Got stuck here: http://jsfiddle.net/UFkg8/ Right now the animation is top-down. What do I need

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.