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

Wrong type hint for QFontDialog.getFont.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: 5.15.1
    • Fix Version/s: None
    • Component/s: PySide
    • Labels:
      None
    • Environment:
      linux deepin
    • Platform/s:
      Linux/X11

      Description

      The type hint says:
      typing.Tuple[PySide2.QtGui.QFont, bool]

      But in reality, the output is reversed:

      font, ok = QFontDialog.getFont()
       print(font, ok)
      

      True  <PySide2.QtGui.QFont(Segoe UI,10,-1,5,25,0,0,0,0,0,Light) at 0x7f0fc37595c8>

        Attachments

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

          Activity

            People

            Assignee:
            crmaurei Cristian Maureira-Fredes
            Reporter:
            blacangeldsf dongsheng fu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes