[PySide] Seeing Deprecation Warning messages

Ed Lipson edlipsongm at gmail.com
Mon Mar 30 12:13:10 CEST 2020


I can co infirm that the 'ugly' workaround does 'suppress' the messages.

I did notice that QtDesigner 5.14.1 generates code:
self
.lineEditAmt.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
No messages from that

Thanks,
Ed


On Mon, Mar 30, 2020 at 4:51 AM Florian Bruhin <me at the-compiler.org> wrote:

> On Fri, Mar 27, 2020 at 04:04:54PM +0100, Cristián Maureira-Fredes wrote:
> > I'm almost certain this was already solved...
> > so maybe something went wrong.
>
> It was fixed here:
> https://codereview.qt-project.org/c/pyside/pyside-setup/+/288381
>
> That commit will be part of 5.14.2 but wasn't in 5.14.1, which is why Ed is
> still seeing those warnings.
>
> The only workaround I know of is rather ugly:
>
>   twi.setTextAlignment(Qt.Alignment(int(Qt.AlignRight) |
> int(Qt.AlignVCenter)))
>
> Florian
>
> --
> me at the-compiler.org (Mail/XMPP) | https://www.qutebrowser.org
>        https://bruhin.software/ |
> https://github.com/sponsors/The-Compiler/
>        GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
>              I love long mails! | https://email.is-not-s.ms/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20200330/ca5e4606/attachment.html>


More information about the PySide mailing list