Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Application always on top with no focus on mac os x
Forum Updated to NodeBB v4.3 + New Features

Application always on top with no focus on mac os x

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 3.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dMathieuD
    wrote on last edited by
    #1

    Hi,

    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.

    Thanks.

    1 Reply Last reply
    0
    • B Offline
      B Offline
      bdemirkir
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DerekDomino
        wrote on last edited by
        #3

        Did you find a solution or alternative?

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved