title: In PyQt6/PySide6, how can we use qproperty-alignment in Qt Designer and in external qss files?
body: <p>Following <a href="https://stackoverflow.com/questions/73244996/in-pyqt6-or-pyside6-is-it-possible-to-do-alignment-with-css-stylesheet">this</a> and <a href="https://stackoverflow.com/questions/69411504/how-to-define-alignment-in-stylesheets-in-pyside6">that</a> questions, it appears that in PySide6 (6.3.1), we have to convert PySide6 flags to intergers to do alignments in a style sheet.</p>
  <p>For example, we can define a style sheet in the main .py like so :</p>
  <pre><code>style_sheet = f&quot;&quot;&quot;
      QLabel{{
          border: 1px solid black;
          qproperty-alignment: {int(Qt.AlignmentFlag.AlignCenter)};
      }}
  &quot;&quot;&quot;
  
  ...
  
  window.setStyleSheet(style_sheet)
  </code></pre>
  <p>The neat trick is to use f string.</p>
  <p>This works but what if we want to use qproperty-alignment :</p>
  <ul>
  <li>in a style sheet defined in Qt Designer ?</li>
  <li>in an external style sheet defined in .qss ?</li>
  </ul>
  <p>If I am not wrong, we can't use f string in either cases.
  As a result, to see alignments in Qt Designer, we have to use Qt Designer properties.</p>
  <p>I think that would be one more big loss compare to Qt5 if there is no workaround.</p>