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

Events gets deferred at clicking on widget's title bar on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 4.8.x, 5.8.0, 5.9.0
    • QPA: Windows
    • None
    • * Windows 10
       * MSVC 2015 32 bit
       * Qt 5.9.0

    Description

      If to click on the window/widget title bar by the left mouse button, then any events gets stopped/deferred on some timeout. But if to click by the right button, then all events gets stopped until the button will be released.

      e.g. this code:

      #include <QApplication>
      #include <QWidget>
      #include <QDebug>
      #include <QTimer>
      #include <QElapsedTimer>
      
      class Widget : public QWidget
      {
          Q_OBJECT
      public:
          Widget(QWidget *parent = 0)
              : QWidget(parent), m_timer(new QTimer(this))
          {
              m_et.start();
              connect(m_timer, &QTimer::timeout, [this]() {
                  qDebug() << "elapsed:" << m_et.elapsed();
                  m_et.start();
              });
              m_timer->start(100);
          }
      private:
          QTimer *m_timer;
          QElapsedTimer m_et;
      };
      
      int main(int argc, char *argv[])
      {
          QApplication a(argc, argv);
          Widget w;
          w.show();
          return a.exec();
      }
      
      #include "main.moc"
      
      

       gets following output:

      {quote}

      ...
      elapsed: 100
      elapsed: 115
      elapsed: 554 // <<< HERE AFTER CLICKING BY LEFT BUTTON
      elapsed: 114
      elapsed: 115
      ...
      elapsed: 121
      elapsed: 115
      elapsed: 7048 // <<< HERE AFTER PRESS/RELEASE BY RIGHT BUTTON
      elapsed: 121
      ...

      {quote}

       

      Attachments

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

        Activity

          People

            kleint Friedemann Kleint
            kuzulis Denis Shienkov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes