Den 13-08-2014 18:37, mark diener skrev: > I am having some strange behavior with a Loader sample program > for QtQuick 2.2 > Keyboard navigation under OSX Mavericks does not work for the loader > ...
Hi Mark, I have had a bunch of keyboard focus issues with Qt 5 that weren't there in Qt 4. Your test case is nice, small and self contained. Please submit it as a bug report. In the meantime you might have success with a workaround. I have fixed all my focus problems with this, so maybe it works for you too. The workaround is to create a timer and instead of taking forcus immediately, wait a bit. Something like this: Item { id: top ... function takeFocus() { internal.focusTimer.start() } QtObject { id: internal Timer { id: focusTimer interval: 50 repeat: false onTriggered: { top.focus = true top.forceActiveFocus() console.log("Force focus to popup") } } } } Bo. -- Viking Software Qt and C++ developers for hire http://www.vikingsoft.eu _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest