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' _______________________________________________ Qt-creator mailing list Qt-creator@qt-project.org http://lists.qt-project.org/mailman/listinfo/qt-creator