项目迁移至 Qt 6 #8

Open
opened 2 years ago by GPBeta · 0 comments
GPBeta commented 2 years ago
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 2 years ago
GPBeta added the
T:task
label 2 years ago
GPBeta self-assigned this 2 years ago
GPBeta added this to the SAO Utils 2 开发进度 project 2 years ago
GPBeta added a new dependency 2 years ago
GPBeta removed a dependency 2 years ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.