[Development] What is the correct way to use QTransform to rotate a QImage by the Y axis?

2022-07-19 Thread JiDe Zhang
I want to rotate the image to 45 degrees by Y axis, what should I do? bool func1() { QImage image(3840, 2160, QImage::Format_ARGB32_Premultiplied); image.fill(Qt::red); QTransform t; t.translate(image.width() / 2.0, image.height() / 2.0); t.rotate(-45, Qt::YAxis); t.transl

Re: [Development] What is the correct way to use QTransform to rotate a QImage by the Y axis?

2022-07-20 Thread JiDe Zhang
I trying fix https://bugreports.qt.io/browse/QTBUG-75954, I think the problem is related to it. From: Allan Sandfeld Jensen Sent: Wednesday, July 20, 2022 16:32 To: development@qt-project.org Cc: JiDe Zhang Subject: Re: [Development] What is the correct way to

Re: [Development] What is the correct way to use QTransform to rotate a QImage by the Y axis?

2022-07-20 Thread JiDe Zhang
so I started testing QTransform, and found those problems using it with QImage for rotate. From: Allan Sandfeld Jensen Sent: Wednesday, July 20, 2022 16:47 To: development@qt-project.org ; JiDe Zhang Subject: Re: [Development] What is the correct way to use QTransfo

Re: [Development] What is the correct way to use QTransform to rotate a QImage by the Y axis?

2022-07-27 Thread JiDe Zhang
dinates simply get clipped. I have no idea if this whole thing is in any way related to QTBUG-75954, though :) - Eirik Aa. On 7/20/22 07:48, JiDe Zhang wrote: > I want to rotate the image to 45 degrees by Y axis, what should I do? > > bool func1() > { > QImage image(38

Re: [Development] Proposing to add (CPU) architecture maintainers

2022-08-11 Thread JiDe Zhang
Hi, Will we accept add the other architectures? A example is Loongarch(Its from China). Will we expectation it is fully public? From: Development on behalf of Alex Blasche Sent: Thursday, August 11, 2022 16:56 To: development@qt-project.org Subject: Re: [Devel

Re: [Development] Adding CPD support to Qt print dialog

2022-09-16 Thread JiDe Zhang
Whether or not CPD should be implementation in Qt, we can first add some QPA abstraction for Print Dialog like as File Dialog. If the implementation of XDG portal in desktop environment is supported CPD, and Qt supported org.freedesktop.portal.Print, then we can use CPD in Qt applications.

[Development] Request review some patch for QQuickPalette

2022-10-13 Thread JiDe Zhang
Hi, I have two patchs about QQuickPalette: https://codereview.qt-project.org/c/qt/qtdeclarative/+/414503 and https://codereview.qt-project.org/c/qt/qtdeclarative/+/415277/7. I submitted them three months ago and added some reviewers, but no response, I can't find someone more suitable to review

[Development] Does QSGPlainTexture needs call setHasAlphaChannel on Vulkan renderer?

2022-10-26 Thread JiDe Zhang
Hi, I am working for wlroots with Qt. In this https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3538#note_1604273 patch, I am exporting some interfaces in wlroots for vulkan, and using it with QtQuick, I want to get the has_alpha value of texture, but Simon Ser thinks we shouldn'

[Development] I am developing a wrapper of wlroots with Qt

2022-11-29 Thread JiDe Zhang
Hi All, I am developing a wrapper of wlroots with Qt, it's https://github.com/vioken/qwlroots. Now, I have been implement a tinywl example use it: https://github.com/vioken/qwlroots/blob/main/examples/tinywl/main.cpp, there is a video for the example runing: https://github.com/vioken/qwlroots/

Re: [Development] I am developing a wrapper of wlroots with Qt

2022-11-29 Thread JiDe Zhang
Thanks, I will think about these suggests. ___ Development mailing list Development@qt-project.org https://lists.qt-project.org/listinfo/development

[Development] How to modify the "Full Name" of Jira?

2022-12-20 Thread JiDe Zhang
Hi, My account of Jira is "zccrs", I want to modify my "Full Name" to "JiDe Zhang", but I can't find an edit button for it. ___ Development mailing list Development@qt-project.org https://lists.qt-project.org/listinfo/development

Re: [Development] How to modify the "Full Name" of Jira?

2022-12-25 Thread JiDe Zhang
Hi Paul, Thank you. I sent an email to jira-ad...@qt-project.org, but I did not receive a reply. From: Paul Wicking Sent: Wednesday, December 21, 2022 16:02 To: JiDe Zhang Cc: Qt邮件列表 Subject: Re: [Development] How to modify the "Full Name" of Jira?

Re: [Development] How to modify the "Full Name" of Jira?

2022-12-26 Thread JiDe Zhang
Ok, thank you. From: Axel Spoerl Sent: Monday, December 26, 2022 18:01 To: JiDe Zhang ; Qt邮件列表 Subject: AW: [Development] How to modify the "Full Name" of Jira? Hi, thanks for reaching out. Processing might take a few days longer than usual due to

[Development] Code review request for QTBUG-75954

2023-01-28 Thread JiDe Zhang
Hi, This https://codereview.qt-project.org/c/qt/qtdeclarative/+/423258 patch is a simple change, but it's been left on the shelf for a long time. Who gets to decide if it can be merge? -- Development mailing list Development@qt-project.org https://lists.qt-project.org/listinfo/development

[Development] Is it a known bug in Qt5: https://bugreports.qt.io/browse/QTBUG-111754 ?

2023-03-06 Thread JiDe Zhang
Hi, The bug is not reproduce in Qt 6.4.2, but I can't found a exists issue in bugreports.qt.io. Maybe my Qt 5 is not latest version? It's Qt 5.15.8, Is this bug fixed in the private Qt code? -- Development mailing list Development@qt-project.org https://lists.qt-project.org/listinfo/developm

[Development] Execute a function in the specified existing thread

2023-06-07 Thread JiDe Zhang
Hi, I am writing a tool to allowed call a function in the specified existing thread, I want to contribution it to Qt project, are you like? We have such needs in many places, such as QQmlThreadPrivate::triggerMainEvent(https://github.com/qt/qtdeclarative/blob/dev/src/qml/qml/ftw/qqmlthread.cpp#

Re: [Development] Execute a function in the specified existing thread

2023-07-03 Thread JiDe Zhang
June 10, 2023 00:05 To: Macieira, Thiago ; JiDe Zhang ; development@qt-project.org Subject: Re: [Development] Execute a function in the specified existing thread On 9 Jun 2023, at 02:00, Thiago Macieira wrote: On Wednesday, 7 June 2023 19:18:02 PDT JiDe Zhang wrote: please make sure

[Development] QtWayland compositor can't to render a wl_surface to multi outputs, Is this a restrict of QtQuick graphics scene?

2023-07-04 Thread JiDe Zhang
The following is a part of an QtWayland example: WaylandOutput { sizeFollowsWindow: true window: Window { width: 1024 height: 768 visible: true Repeater { model: shellSurfaces ShellSurfaceItem {

Re: [Development] QtWayland compositor can't to render a wl_surface to multi outputs, Is this a restrict of QtQuick graphics scene?

2023-07-10 Thread JiDe Zhang
ent: Monday, July 10, 2023 17:38 To: JiDe Zhang ; Qt邮件列表 Subject: Re: QtWayland compositor can't to render a wl_surface to multi outputs, Is this a restrict of QtQuick graphics scene? Hi, Each window has an isolated scene graph and RHI instance, which is the reason for this limitation

[Development] Request review patch of QQuickImage

2023-07-26 Thread JiDe Zhang
Hi, This https://codereview.qt-project.org/c/qt/qtdeclarative/+/446349 patch has been quiet for a long time, anyone else have an opinion on it? I want to continue it. -- Development mailing list Development@qt-project.org https://lists.qt-project.org/listinfo/development

[Development] How to support sRGB format render target for QtQuick

2023-11-16 Thread JiDe Zhang
Hi, I want to use a VK_FORMAT_B8G8R8A8_SRGB format VkImage in QQuickRenderTarget, but Qt can't automatically apply gamma correction to each QQuickItem. I'm not sure if there is an ideal way to support this in Qt's current design, I'm reporting a bug, please give me some advice there https://bu

[Development] How to take of QRhiRenderTarget's contents in rendering?

2024-02-25 Thread JiDe Zhang
Hi, I has a bug report: https://bugreports.qt.io/browse/QTBUG-120519 . https://github.com/vioken/waylib/blob/dd9bcfe3c5736ea9508ff88c45c583a7427b762e/src/server/qtquick/private/wrenderbuffernode.cpp#L518 is my implementation, it's very ugly. And this is a big job, because not any helper codes fo

[Development] How to skip write property in qml's property binding?

2024-07-18 Thread JiDe Zhang
For an example: Text { text: fooObject?.title } When the fooObject is null, will got a qml error "Unable to assign [undefined] to QString". I don't want the error, so, how to skip write value for "text" property when fooObject is null? Text { text: fooObject?.title ?? text } This is

Re: [Development] How to skip write property in qml's property binding?

2024-07-19 Thread JiDe Zhang
lue `undefined`. From: Fabian Kosmale Sent: Friday, July 19, 2024 14:37 To: JiDe Zhang ; Qt邮件列表 Subject: AW: How to skip write property in qml's property binding? Hi, as always, it depends. If you really want to set a binding based on a condition, but otherwise leave the valu

Re: [Development] How to skip write property in qml's property binding?

2024-07-19 Thread JiDe Zhang
ent: Friday, July 19, 2024 17:09 To: Fabian Kosmale Cc: JiDe Zhang ; Qt邮件列表 Subject: Re: [Development] How to skip write property in qml's property binding? as always, it depends. If you really want to set a binding based on a condition, but otherwise leave the value as it is, you want to us

Re: [Development] How to skip write property in qml's property binding?

2024-08-07 Thread JiDe Zhang
I can't add the RESET attribute to the property, because that properties isn't defined in my project. Also, I don't want this attribute to be reset. I want it to retain its current value, it has lost its binding state only. From: Development on behalf of Ulf Her

Re: [Development] How to skip write property in qml's property binding?

2024-08-07 Thread JiDe Zhang
Thank you Mike, My answer is "what it last was before fooObject went null", and I was use it in my project. Relatively speaking, "text: fooObject?.title ?? text" is the easiest way to understand so far. From: Development on behalf

[Development] About the QtQuick half-pixel problems

2025-04-09 Thread JiDe Zhang
I have reported a bug here: https://bugreports.qt.io/browse/QTBUG-135833. This issue is quite tricky ― it concerns the half-pixel problem with QML elements. I'm wondering if anyone has found a workaround or a temporary solution for this. So far, I haven’t come up with a reliable way to handle it.

[Development] Is it technically feasible to let Qt decide at runtime (rather than compile-time) whether to use OpenGL ES or desktop OpenGL?

2025-06-24 Thread JiDe Zhang
I reported this issue a few years ago: https://bugreports.qt.io/browse/QTBUG-92059 , but there has been no substantial progress. Can this issue be pushed forward again? Even though many years have passed, the situation has not improved. Most Linux distributions are still facing this dilemma. Fo