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

Docs and stubs for QStyleOptionViewItem miss a lot of Public Variables

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 6.5.0
    • None

    Description

      The docs for QStyleOptionViewItem completely miss the following variables:

      • direction
      • fontMetrics
      • palette
      • rect
      • state
      • styleObject
      • type
      • version

      The stubs for QStyleOptionViewItem (file PySide6/QtWidgets.pyi) miss all the variables:

      backgroundBrush: QBrush = ...
      checkState: CheckState = ...
      decorationAlignment: AlignmentFlag = ...
      decorationPosition: Position = ...
      decorationSize: QSize = ...
      direction: LayoutDirection = ...
      displayAlignment: AlignmentFlag = ...
      features: ViewItemFeature = ...
      font: QFont = ...
      fontMetrics: QFontMetrics = ...
      icon: QIcon = ...
      index: QModelIndex = ...
      locale: QLocale = ...
      palette: QPalette = ...
      rect: QRect = ...
      showDecorationSelected: bool = ...
      state: StateFlag = ...
      styleObject: object | None = ...
      text: str = ...
      textElideMode: TextElideMode = ...
      type: int = ...
      version: int = ...
      viewItemPosition: ViewItemPosition = ...
      widget: QTableView = ...
      

      Attachments

        Issue Links

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

          Activity

            People

              kleint Friedemann Kleint
              stsav012 Anton Yablokov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes