<div dir="ltr">Hello Phil, <div><br></div><div>Thank you for that clarification about Q_PROPERTY. </div><div><br></div><div>After doing a bit of research, I realize now that I had made an incorrect assumption since I was using qproperty with style sheets. </div><div><br></div><div>Joshua Willman</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 1, 2021 at 10:41 AM Phil Thompson <<a href="mailto:phil@riverbankcomputing.com" target="_blank">phil@riverbankcomputing.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">On 01/10/2021 16:32, RedHuli wrote:<br>
> Hello,<br>
> <br>
> I have a quick question. Back in PyQt5, I could use stylesheets and <br>
> QObject<br>
> properties for aligning text, like so:<br>
> label = QLabel("Test")<br>
> label.setStyleSheet("qproperty-alignment: AlignCenter")<br>
> <br>
> I know I can use label.setAlignment(Qt.AlignmentFlag.AlignCenter) in <br>
> PyQt6.<br>
> label.setAlignement(Qt.AlignmentFlag.AlignCenter)<br>
> <br>
> What I was more so curious about is if Q_PROPERTY is still available in<br>
> PyQt6. I haven't seen anything about it being removed. I assume that I <br>
> can<br>
> still use it and that something is wrong with my syntax.<br>
<br>
PyQt has never supported Q_PROPERTY.<br>
<br>
Phil<br>
</blockquote></div>