Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-65159

Inconsistent grabbing APIs between QWidget and QWindow

XMLWordPrintable

      void QWidget::grabMouse()
      void QWidget::releaseMouse()
      void QWidget::grabKeyboard()
      void QWidget::releaseKeyboard()
      
      bool QWindow::setMouseGrabEnabled(bool grab)
      bool QWindow::setKeyboardGrabEnabled(bool grab)
      

      Having two different APIs for doing the same thing is not very natural for API users, but what I find even more strange is why does return value does not matter when grabbing with widgets API?

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Unassigned Unassigned
            paeglis Gatis Paeglis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes