<div dir="ltr">Hello, <div><br></div><div>I have a quick question. Back in PyQt5, I could use stylesheets and QObject properties for aligning text, like so:</div><div><span style="color:rgb(212,212,212);font-family:Menlo,Monaco,"Courier New",monospace;font-size:12px;white-space:pre;background-color:rgb(30,30,30)">label = QLabel("Test")</span></div><div><span style="color:rgb(212,212,212);font-family:Menlo,Monaco,"Courier New",monospace;font-size:12px;white-space:pre;background-color:rgb(30,30,30)">label.setStyleSheet("qproperty-alignment: AlignCenter"</span><span style="color:rgb(212,212,212);font-family:Menlo,Monaco,"Courier New",monospace;font-size:12px;white-space:pre;background-color:rgb(30,30,30)">)</span><br></div><div><br></div><div>I know I can use label.setAlignment(Qt.AlignmentFlag.AlignCenter) in PyQt6.</div><div><span style="color:rgb(212,212,212);font-family:Menlo,Monaco,"Courier New",monospace;font-size:12px;white-space:pre;background-color:rgb(30,30,30)">label.setAlignement(Qt.AlignmentFlag.AlignCenter</span><span style="color:rgb(212,212,212);font-family:Menlo,Monaco,"Courier New",monospace;font-size:12px;white-space:pre;background-color:rgb(30,30,30)">)</span><br></div><div><br></div><div>What I was more so curious about is if Q_PROPERTY is still available in PyQt6. I haven't seen anything about it being removed. I assume that I can still use it and that something is wrong with my syntax. </div><div><br></div><div>Thanks for your help!</div><div><br></div><div>Joshua Willman</div></div>