Results 1 to 2 of 2

Thread: QTextEdit and Tab Focus with setTabChangesFocus()

  1. #1
    Join Date
    Feb 2007
    Posts
    81
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default QTextEdit and Tab Focus with setTabChangesFocus()

    I am trying to use setTabChangesFocus(false) to allow users to type in a qtextedit widget and be able to insert tab characters...

    When I type a tab key, it inserts one tab, and also changes focus to the mainwindow. When I set setTabChangesFocus(true) it loses focus when tab is pressbut doesn't insert a tab character in the qtextedit widget.

    Am I missing something? It's also highlighting menus in the menu bar as I type letters in the qtextedit widget that correspond to application shortcuts, but doesn't actually execute the shortcut. That's a whole different problem i'm sure, I'm really just worried about the tab focus problem.

    Thanks for the help,
    dave

  2. #2
    Join Date
    Feb 2007
    Posts
    81
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QTextEdit and Tab Focus with setTabChangesFocus()

    this seems to only happen on OS/X ... the tab key doesn't change focus on the windows version of my program... that seems really strange. if anyone has any ideas I'd love to hear them.

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.