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

Follow the Qt/C++ API style in regards of properties

    XMLWordPrintable

Details

    • User Story
    • Resolution: Done
    • P2: Important
    • 6.0.2
    • None
    • PySide
    • e20e29d1b (dev), c66dd4fca (6.4), 6f58aa74b (dev), e7f2ccf53 (6.4), cdda72b0f (dev), 546548acc (dev)

    Description

      The current C++ api make uses of properties for certain Object (https://doc.qt.io/qt-5/qlabel.html), where as the current pySide API use exclusively methods (https://doc.qt.io/qtforpython/PySide2/QtWidgets/QLabel.html)

      One would expect to set the alignment this way:

      QLabel.alignment = Qt.AlignLeft
      

      Attachments

        Issue Links

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

          Activity

            People

              ctismer Christian Tismer
              xrogaan Ludovic Bellière
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes