QMacNativeWidget and Keyboard Input Focus



  • Hi,

    I recently met some bumps while trying to implement some tab behaviors on Mac OS X. I found a nice gadget written under Cocoa that suits my need pretty well, so I made a wrapper to put QWidgets into the framework. This worked fine, until I tried to put some text-input widgets in it... The Qt text-input widgets (QLineEdit, for example) can't get keyboard focus at all.

    I did some search on the Net and found that setting Qt::AA_MacPluginApplication can solve this, but this also make the application menu appears on windows (instead of being global like those in normal Mac apps), which is not acceptable.

    Is there any way to get around this problem? I don't use any Cocoa text-input controls, only Qt ones, so the keyboard focuses conflicting problem is not important — at least I think it isn't.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.