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

typing: support more scalar operators for QSize and QSizeF

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 6.8.2
    • Type hints
    • None

    Description

      (reported from PySide6-stubs)

       

      QSize and QSizeF support a wide range of scalar operators. Not all of them are type described correctly.

      The missing one are :

       
      qs1 = QtCore.QSize(1,2)qs3 = QtCore.QSize(5, 6)
      qs3 = 3 * qs1
      qs3 = 3.0 * qs1
      qs3 = qs1 / 2.0
      qs3 /= 3.0
       
      and the same for QSizeF
       
      For a full test file, check https://github.com/python-qt-tools/PySide6-stubs/blob/main/tests/qsize.py

      Attachments

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

        Activity

          People

            ctismer Christian Tismer
            bluebird75 Philippe Fremy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes