[Interest] QJSEngine won't evaluate octal literal

2021-08-02 Thread Hamish Moffatt via Interest
I have the following test code to evaluate an octal literal which I'm running on Qt 5.12 and 5.15;             QJSEngine eng;             auto jsv = eng.evaluate("(function(){return 011;})()");             qDebug() << jsv.isError() << jsv.toString() << jsv.toVariant(); This outputs: true "Synt

[Interest] QColor( Qt::black ).lighter() == QColor( Qt::black )

2021-08-02 Thread Scott Bloom
While I understand the logic in the "lighter" (and darker) code, which basically converts to a HSV then uses the value sent into lighter (or darker) on the HSV value to compute the new value, then convert to RGB and return. It fails when the color being lightened is black, is the HSV V = 0, mult

Re: [Interest] Qt6 porting guidance: (MSDEV) QMAKE_CXXFLAGS += /source-charset

2021-08-02 Thread David M. Cotter
does anyone have any idea about this? please? > On Jul 9, 2021, at 12:38 PM, David M. Cotter wrote: > >> Please note that you can choose to use a different source character set, but >> since Qt 5.0, the 8-bit strings passed to QString must be UTF-8. This is not >> configurable any more, like i

Re: [Interest] Skybox Qt Quick3D bad performance in Android

2021-08-02 Thread Laszlo Agocs
Hi, https://doc.qt.io/qt-6/qtquick3d-requirements.html#opengl-specifics (calling and honoring QQuick3D::idealSurfaceFormat()) is probably required in this case. (otherwise, not sure why it ends up using GLSL ES 100 shaders) Yet better, in Qt 6.1 and newer the whole pre-filtering process can be