项目迁移至 Qt 6 #8

Open
opened 2022-01-26 22:25:31 +08:00 by GPBeta · 0 comments
Owner

由于 Qt 6.0 目前功能大范围缺失,处于不可用的状态,故暂时放弃在直接 SAO Utils 2 初版中使用。
目前计划 Qt 6.10 或更完善时再迁移。

Qt 6 QML 变动

URL 解析

应使用 Qt.resolvedUrl() 显式对相对路径的资源进行解析:

property url imagesUrl: Qt.resolvedUrl("./images")

Connections 组件

应显式声明信号处理函数:

Connections {
    function onClicked(mouse) { ... }
}
由于 Qt 6.0 目前功能大范围缺失,处于不可用的状态,故暂时放弃在直接 SAO Utils 2 初版中使用。 目前计划 Qt 6.10 或更完善时再迁移。 ## Qt 6 QML 变动 ### URL 解析 应使用 `Qt.resolvedUrl()` 显式对相对路径的资源进行解析: ``` property url imagesUrl: Qt.resolvedUrl("./images") ``` ### Connections 组件 应显式声明信号处理函数: ``` Connections { function onClicked(mouse) { ... } } ```
GPBeta added this to the Progressive milestone 2022-01-26 22:25:31 +08:00
GPBeta added the
T:task
label 2022-01-26 22:25:31 +08:00
GPBeta self-assigned this 2022-01-26 22:25:31 +08:00
GPBeta added this to the SAO Utils 2 开发进度 project 2022-01-26 22:25:31 +08:00
GPBeta added a new dependency 2022-03-23 17:13:29 +08:00
GPBeta removed a dependency 2022-10-01 21:11:50 +08:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: core/sao-utils#8
No description provided.