Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-71909

Qt setWindowFlags WindowDoesNotAcceptFocus not working on Wayland

    XMLWordPrintable

Details

    • Linux/Wayland

    Description

      I make a custom virtual keyboard which base on QWidget.

      And it work properly on Windows/Ubuntu os.

      But when i deploy it to my target develop board which base on ARM , it is not working. When i click an input field, the keyboard is displayed and disappears immediately. I check my keyboard log, it seems that the keyboard accept focus and then call commit function (from QPlatformInputContext).

      I have set my view: view->setWindowFlags(Qt::Tool | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint | Qt::WindowDoesNotAcceptFocus);

      If i change the export QT_QPA_PLATFORM=wayland to export QT_QPA_PLATFORM=linuxfb, the keyboard work nice as same as on desktop.

      But for some reason, I can't modify it.

      Any advice appreciated it, thx in advance.

      Test code:

      Test code

       

      atfter clicked input field three time:

      output log:

      [root@px30_64:/userdata/test]# create

      [root@px30_64:/userdata/test]# create

      [root@px30_64:/userdata/test]# [redacted]

      [root@px30_64:/userdata/test]# Using Wayland-EGL

      rk-debug mali-ver=rsx-p0-1.0

      Using the 'xdg-shell-v6' shell integration

      [root@px30_64:/userdata/test]# external commit

      external commit

      external commit

      Unexpected wl_surface.enter received for output with id: 10 screen name: "unknown" screen model: ""

      external commit

      external commit

      external commit

      Unexpected wl_surface.enter received for output with id: 10 screen name: "unknown" screen model: ""

      external commit

      external commit

      external commit

       

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              wzshun shun wz
              Votes:
              3 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes