Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-863

Issue type for Screen.grabWindow

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.12.0
    • 5.11.2
    • PySide
    • None
    • Debian8 - python2.7 - latest PySide2 (5.11.2)
    • Linux/X11
    • f9d4a28fef8b234b6ef173fc3d21408f67b37472 (pyside/pyside-setup/5.12)

    Description

      PySide2 function: Screen.grabWindow(WId) requires an WId and refuse int.

      But WId type is not accessible from PySide2. Furthermore Widget.winId() function returns an int and not a WId. So it is impossible to grab any window from grabWindow.

      Simplest source code to reproduce:

      -------------------------

      from PySide2.QtWidgets import QWidget, QApplication
      from PySide2.support.signature import mapping

      app = QApplication([])
      widget = QWidget()
      app.setActiveWindow(widget)
      widget.show()

      window = QApplication.activeWindow()
      screen = QApplication.primaryScreen()
      wid = window.winId()
      w = screen.grabWindow(wid)

       

       

       

      Attachments

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

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            payno henri payno
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes