Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Application always on top with no focus on mac os x
dMathieuD last edited by
I would like my application to have the same behavior as the "keyboard viewer" input method in mac os x. It means always on top but never focused. I was using @qt_mac_set_raise_process(false)@ in the @macEventFilter(EventHandlerCallRef caller, EventRef event)@ function with @setWindowFlags(Qt::Window | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint)@ from QWidget class for my widget window. This is not working anymore on "Mac os x Lion" as my application now take the focus when I clicked on. I tried adding Qt::Tool attribute with no effect... I m using a 4.8 beta from source.
Anyone know how to deal with this.
bdemirkir last edited by
I also want to know how can we do that? My project have a virtual keyboard with (Qt::Tool | Qt::FramelessWindowHint | Qt::X11BypassWindowManagerHint) flags. It's all sub-widgets has NoFocus property. It doesn't get any focus on Windows or Linux. On Mac showing this widget causes losing focus on last focused widget.
DerekDomino last edited by
Did you find a solution or alternative?