PDA

View Full Version : QTextEdit and Tab Focus with setTabChangesFocus()



dvmorris
7th October 2007, 00:25
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

dvmorris
7th October 2007, 03:22
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.