Re: [Interest] QML: non scaled image strange issue under Linux
Lazy is as lazy does Hey. I have just gotten contact about the isDigit() bug I filed back in 2012! I haven't looked at the code, but, if it is blurring at 100% scale factor, I would be looking for floating point math. Inconsistent behavior between Linux and other supported platforms is definitely a bug. If you cannot get the screen to behave the same across platforms you cannot release a viable cross platform product. On 7/26/22 14:22, Alexander Dyagilev wrote: OK, I can live with scale logic always active. But why is it so blurred when scale is 100%... For me, it's definitely a bug... But it seems I'm too lazy to file one yet bug report... On 7/23/2022 1:50 PM, Roland Hughes via Interest wrote: On 7/23/22 05:00, Alexander Dyagilev wrote: I'm generating image (QR code) using QML image provider. Show it using Image control using actual size (i.e. width height are not specified, and I also set fill mode to Pad). Windows and macOS - works fine. Linux (Ubuntu) - it's shown blurred. If I set smooth property to false - it's shown as expected. Is it a bug? In docs it's stated that smooth has no effect if image is not scaled. Qt 5.12.12. Just drawing a line from point A to point B without looking at the code, the Ubuntu/Linux logic path appears to always execute the scale logic even when the scale factor is 100%. I suggest you file a bug which will probably be reclassified as a "performance enhancement request" to skip image scaling when the scale factor is 100% -- Roland Hughes, President Logikal Solutions (630)-205-1593 http://www.theminimumyouneedtoknow.com http://www.infiniteexposure.net http://www.johnsmith-book.com http://www.logikalblog.com http://www.interestingauthors.com/blog ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] QML: non scaled image strange issue under Linux
On 7/23/2022 8:12 PM, Fatih Uzunoğlu wrote: In case OpenGL is used, this might be a bug in your OpenGL driver. Maybe, it's VirtualBox Ubuntu 22. ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] QML: non scaled image strange issue under Linux
OK, I can live with scale logic always active. But why is it so blurred when scale is 100%... For me, it's definitely a bug... But it seems I'm too lazy to file one yet bug report... On 7/23/2022 1:50 PM, Roland Hughes via Interest wrote: On 7/23/22 05:00, Alexander Dyagilev wrote: I'm generating image (QR code) using QML image provider. Show it using Image control using actual size (i.e. width height are not specified, and I also set fill mode to Pad). Windows and macOS - works fine. Linux (Ubuntu) - it's shown blurred. If I set smooth property to false - it's shown as expected. Is it a bug? In docs it's stated that smooth has no effect if image is not scaled. Qt 5.12.12. Just drawing a line from point A to point B without looking at the code, the Ubuntu/Linux logic path appears to always execute the scale logic even when the scale factor is 100%. I suggest you file a bug which will probably be reclassified as a "performance enhancement request" to skip image scaling when the scale factor is 100% ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] QML: non scaled image strange issue under Linux
Hi, In case OpenGL is used, this might be a bug in your OpenGL driver. As far as I know; Qt uses `GL_NEAREST` when `smooth` is unset, and `GL_LINEAR` when `smooth` is set. I doubt there is extra logic to check if the texture size is the same as `Image` size that it uses `GL_NEAREST` regardless of `smooth` property. I think the docs should say something like "this is the expected behavior of the driver", about the `smooth` property. You might consider using something like: `smooth: (paintedWidth !== width) || (paintedHeight !== height) `. I think it would be better if Qt did not use `GL_LINEAR` in these cases by default: - Texture size is the same as `Image` size. - `Image` size is non-fractional upscaling of the texture size. (Integer upscale) That being said, I don't know how Qt RHI behaves. This is valid for direct OpenGL. On 23/07/2022 03:40, Alexander Dyagilev wrote: Hello, I'm generating image (QR code) using QML image provider. Show it using Image control using actual size (i.e. width height are not specified, and I also set fill mode to Pad). Windows and macOS - works fine. Linux (Ubuntu) - it's shown blurred. If I set smooth property to false - it's shown as expected. Is it a bug? In docs it's stated that smooth has no effect if image is not scaled. Qt 5.12.12. smime.p7s Description: S/MIME Cryptographic Signature ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] QML: non scaled image strange issue under Linux
On 7/23/22 05:00, Alexander Dyagilev wrote: I'm generating image (QR code) using QML image provider. Show it using Image control using actual size (i.e. width height are not specified, and I also set fill mode to Pad). Windows and macOS - works fine. Linux (Ubuntu) - it's shown blurred. If I set smooth property to false - it's shown as expected. Is it a bug? In docs it's stated that smooth has no effect if image is not scaled. Qt 5.12.12. Just drawing a line from point A to point B without looking at the code, the Ubuntu/Linux logic path appears to always execute the scale logic even when the scale factor is 100%. I suggest you file a bug which will probably be reclassified as a "performance enhancement request" to skip image scaling when the scale factor is 100% -- Roland Hughes, President Logikal Solutions (630)-205-1593 http://www.theminimumyouneedtoknow.com http://www.infiniteexposure.net http://www.johnsmith-book.com http://www.logikalblog.com http://www.interestingauthors.com/blog ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest