Details
-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
4.8.x, 5.8.0, 5.9.0
-
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}