title: How to make non-modal QDialog not cancellable by pressing Esc key?
body: <p>Can I prevent non-modal QDialog from closing when the user hits <code>Esc</code>, other than by overriding <code>reject()</code> or using event filter / <code>event</code> method?
  If not, is it possible with a modal QDialog?</p>