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

QDockWidget randomly looses fokus under KDE (5.28) when floating

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.7.1, 5.11.1
    • None
    • Debian Stretch with KDE using distribution provided Qt 5.7.1 and Qt 5.11.1 installed by Qt installer
    • Linux/X11

    Description

      To reproduce the bug setup a QWidget project and add a QDockWidget to the mainwindow.
      Undock and dock the widget a few times and click randomly on the titlebars of the widget and the mainwindow. Now sometimes when the QDockWidget is clicked while floating the focus directly jumps to the mainwindow. This makes it impossible to edit anything inside the QDockWidget while floating.
      Docking and undocking it again may fix or start the problem (or having no effect).
      The problem occurs under Debian Strecht with KDE with the Qt version shipped by the distribution and also with Qt 5.11.1 (I have not tested other versions)
      On Windows 7 I could not reproduce the bug (Qt 5.11.1 tested).

      Here is some simple example where it is not possible to edit the QLineEdit when the focus problem occurs.

       

      MainWindow::MainWindow(QWidget *parent) :
       QMainWindow(parent),
       ui(new Ui::MainWindow)
      {
           ui->setupUi(this);
           // Dockwidget with LineEdit
           QDockWidget* dockWidget = new QDockWidget(this);
           dockWidget->setWidget(new QLineEdit(dockWidget));
      }
      

       

       

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            gde gde
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes