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

    • Icon: User Story User Story
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 6.0.2
    • None
    • PySide
    • e20e29d1b (dev), c66dd4fca (6.4), 6f58aa74b (dev), e7f2ccf53 (6.4), cdda72b0f (dev), 546548acc (dev), aa07b1e05 (dev), 95bb91d94 (6.8), da194242c (dev), c3fb0181e (6.8), 52d8bb283 (dev), 25e94646e (6.9)

      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
      

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes