Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.1.0
-
None
-
Windows 7
-
1baf293548aa859e922dface4cd7b4bac5754b3c
Description
On Windows 7, in the mouse properties dialog, you can tick a checkbox to automatically move the mouse pointer to the default button in a dialog box (cf pic).
The attached project is the MainWindow default project with a simple close event function :
void MainWindow::closeEvent(QCloseEvent* event) { QMessageBox::StandardButton button = QMessageBox::question(this, "Quittez ?", "Voulez vous ?", QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes); if(button == QMessageBox::No) { event->ignore(); } }
This feature was working great on Qt 4.8 (tested with example attached) but is broken in Qt 5.1 at least (didn't check on Qt 5.0).