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

Inconsistent grabbing APIs between QWidget and QWindow

    XMLWordPrintable

Details

    Description

      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?

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes