PDA

View Full Version : QMessageBox with no focus



mpi
27th September 2009, 17:52
I don't understand this:

* Run ./application in examples/mainwindows/application
* Type something in the editor window.
* Close the application by pressing the 'cross' in the upper-right corner of the application window.
* A QMessageBox appears. It does NOT have keyboard focus.

As a result, you cannot use the keyboard for interacting with the menu.

If you exit by pressing Ctrl+Q, however, the QMessageBox DOES have keyboard focus.

Anybody here understand the difference why?

Mads