https://bugs.kde.org/show_bug.cgi?id=363892

            Bug ID: 363892
           Summary: QtQuick Widgets embedded into a QWidget-based window
                    cannot regain keyboard focus
           Product: kwin
           Version: 5.5.5
          Platform: Kubuntu Packages
               URL: http://code.qt.io/cgit/qt/qtdeclarative.git/tree/examp
                    les/quick/embeddedinwidgets
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kwin-bugs-n...@kde.org
          Reporter: mail_to_...@gmx.de

A qml scene/view embedded into a QWidget looses the ability to get keyboard
focus after clicking into QLineEdits and other QWidgets.

Please use the embeddedinwidgets example from Qt as a basis for understanding
my bugreport.

When started I can type into the top QLineEdit, <tab> brings me to the two qml
text boxes and I can type there. Alternatively I can click into the qml text
boxes and start typing as well.

Now once I click into one of the QLineEdits (or otherwise give focus to some
QWidget), I can no longer set the keyboard focus to the Qml text boxes, neither
by clicking, nor by pressing <tab>.

Switching to a different window will restore everything, ie I can set the
keyboard focus to the qml text box again.

There is an upstream qt bug report (
https://bugreports.qt.io/browse/QTBUG-39362 ) but as I remarked there,
switching the window manager solves the problem. I have tested it using IceWm
and the windowmanager used in ubuntu unity, no problems there.

Reproducible: Always

Steps to Reproduce:
Please use the embeddedinwidgets example from Qt as a basis for understanding
my bugreport.

When started I can type into the top QLineEdit, <tab> brings me to the two qml
text boxes and I can type there. Alternatively I can click into the qml text
boxes and start typing as well.

Now once I click into one of the QLineEdits (or otherwise give focus to some
QWidget), I can no longer set the keyboard focus to the Qml text boxes, neither
by clicking, nor by pressing <tab>.

Switching to a different window will restore everything, ie I can set the
keyboard focus to the qml text box again.





There is an upstream qt bug report (
https://bugreports.qt.io/browse/QTBUG-39362 ) but as I remarked there,
switching the window manager solves the problem. I have tested it using IceWm
and the windowmanager used in ubuntu unity, no problems there.

I would be very grateful also for workarounds, ie. setting some window flag
etc, as long as they are not too hackish.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to