[Qt-creator] qfloat16 support

André Pönitz apoenitz at t-online.de
Thu Mar 30 20:27:02 CEST 2017


On Thu, Mar 30, 2017 at 03:38:50AM +0000, Glen Mabey wrote:
> Hello,
> 
> I contributed to the new qfloat16 class in Qt 5.9.  Today I compiled QtCreator
> from the master branch and I’m wondering what I could do to help qfloat16
> instances be displayed with a float-like value, instead of what it’s currently
> doing, which is to show the quint16 that it’s stored in.

You'd need to add a 'dumper' for the qfloat16 type in
share/qtcreator/debugger/qttypes.py reading the binary contents
and creating some sensible display, and perhaps the original
'raw' contents as children for people that need that.
numpy.frombuffer(..., 'float16') might do the trick.

Perhaps something like https://codereview.qt-project.org/#/c/190200/

Hope this helps,
Andre'



More information about the Qt-creator mailing list