[PyQt] Fwd: qDebug() in pyQt5

J Barchan jnbarchan at gmail.com
Thu Sep 27 16:08:44 BST 2018


---------- Forwarded message ----------
From: J Barchan <jnbarchan at gmail.com>
Date: 27 September 2018 at 16:08
Subject: Re: [PyQt] qDebug() in pyQt5
To: Christopher Probst <christop.probst at gmail.com>




On 27 September 2018 at 15:35, Christopher Probst <christop.probst at gmail.com
> wrote:

> Hi,
>
> What is the best way to mimic qDebug()'s behavior in pyqt?
>
> What is the python equivalent of this C++ code?
> QColor aColor = Qt::blue;
> qDebug() <<  aColor;
>
> Thanks,
> Christopher
>
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt
>

I am going to make a *guess* that what you are really interested in this
case is the ability to get that output as some symbolic Qt::blue, rather
than qDebug() in general?  If that is so, I was recommended and use

qenum_key

which was written by Florian Bruhin of this forum.  I cannot recall/find
the best URL, but I found it at http://python.6.x6.nabble.com/
How-to-get-Qt-enum-class-td5067001.html.  Until Florian posts a better
link... :)


-- 
Kindest,
Jonathan



-- 
Kindest,
Jonathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20180927/5f99a042/attachment.html>


More information about the PyQt mailing list