Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Feb 2010

    QTextEdit keyboard focus (solved)


    I have a stacked widget with a single QTextEdit on one of it's pages. After I move to that page with the QTextEdit, I have to click the navi key (middle selection key) in order to gain focus on the QTextEdit and be able to scroll text. How can I grab focus in code so that user can scroll without first clicking the middle selection key?

    I tried grabKeyboard(), grabMouse(), setFocus() but none of them work.
    Last edited by birch01; 2011-04-12 at 14:11.

  2. #2
    Registered User
    Join Date
    Feb 2010

    Re: QTextEdit keyboard focus

    Never mind. Found the solution. It's the setEditFocus(), never thought about that before because I don't allow the user to edit content.

Similar Threads

  1. Replies: 2
    Last Post: 2007-06-04, 06:01
  2. keyboard focus
    By hmauricio in forum Symbian
    Replies: 1
    Last Post: 2005-09-06, 04:27

Posting Permissions

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