Details
-
Bug
-
Resolution: Cannot Reproduce
-
P2: Important
-
5.1.1
-
Windows 7 64-bit
Description
The problem is that the window transparency behaves randomly and not consistent when the mouse enters/leaves the main window area.
Partial code snippets shown as below. Please see framelesswindowtest_v1.zip for the full test program.
setWindowFlags(Qt::FramelessWindowHint); ... ... ... void DraftMainWindow::enterEvent(QEvent* event) { setWindowOpacity(1.0); qDebug() << "Mouse enter event." << draftElapsedTimer.elapsed(); QWidget::enterEvent(event); } void DraftMainWindow::leaveEvent(QEvent* event) { setWindowOpacity(0.3); qDebug() << "Mouse leave event." << draftElapsedTimer.elapsed(); QWidget::leaveEvent(event); }
The issue cannot be reproducible with Qt 4.8.5 environment. Thus, it is likely a regression.