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

Alignment in stylesheets can no longer be defined with text, only with integers

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 6.2.0
    • PySide
    • None
    • Windows

    Description

      In PySide2 we could use "qproperty-alignment: AlignRight;", but this no longer works in PySide6

      Here is the minimal reproducible example:

      from PySide6 import QtWidgets
      
      app = QtWidgets.QApplication([])
      window = QtWidgets.QLabel('Window from label')
      window.setStyleSheet('qproperty-alignment: AlignRight;')
      window.setFixedWidth(1000)
      window.show()
      app.exec()
      

      Since AlignRight is equal to 2, we can replace AligntRight with 2 in the above example and alignment will work.

      Attachments

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

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            rayterex Nemanja Stojanovic
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes