-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaboutQt.qml
84 lines (73 loc) · 2.89 KB
/
aboutQt.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
import QtQuick 2.15
import QtQuick.Layouts 1.12
import QtQuick.Controls 2.15
import QtQuick.Controls.Material 2.15
import QtQuick.Controls.Universal 2.15
Page {
id: pageAboutQt
title: qsTr("about Qt")
focus: true
ScrollView {
id: scrollAboutQt
width: parent.width
height : parent.height
contentWidth: aboutQtRow.width // The important part
contentHeight: aboutQtRow.height // Same
anchors.fill: parent
clip : true // Prevent drawing column outside the scrollview borders
RowLayout {
id: aboutQtRow
x: parent.x
width: parent.width
Layout.fillWidth: true
spacing: 20
Image {
id: imgQt
source: "Image/Qt.svg"
Layout.alignment: Qt.AlignTop
fillMode: Image.PreserveAspectFit
Layout.margins: 20
}
Label {
id: aboutQtLabel
text: "<html><head/><body><p><h2>About Qt</h2><br> \
<br> \
This program uses Qt version 5.15.2.<br>
Qt is a C++ toolkit for cross-platform application development.<br>
Qt provides single-source portability across all major desktop operating systems.<br>
It is also available for embedded Linux and other embedded and mobile operating systems.<br>
<br>
Qt is available under multiple licensing options designed to accommodate the needs of our various users.<br>
<br>
Qt licensed under our commercial license agreement is appropriate for development of proprietary/commercial<br> \
software where you do not want to share any source code with third parties or otherwise cannot comply<br> \
with the terms of GNU (L)GPL.<br>
<br>
Qt licensed under GNU (L)GPL is appropriate for the development of Qt applications <br>
provided you can comply with the terms and conditions of the respective licenses.<br>
<br>
Please see <a href=\"http://qt.io/licensing/\">qt.io/licensing</a> for an overview of Qt licensing.<br>
<br>
Copyright (C) 2021 The Qt Company Ltd and other contributors.<br>
Qt and the Qt logo are trademarks of The Qt Company Ltd.<br>
<br>
Qt is The Qt Company Ltd product developed as an open source project.<br>
See <a href=\"http://qt.io/\">qt.io</a> for more information.</p></body></html>"
width: aboutQtRow.width - imgQt.width - aboutQtRow.spacing * 2
textFormat: Label.RichText
wrapMode: Label.WordWrap
background: null
Layout.fillWidth: true
Layout.fillHeight: true
Layout.alignment: Qt.AlignTop | Qt.AlignVCenter
Layout.margins: 20
Connections {
target: aboutQtLabel
function onLinkActivated() {
Qt.openUrlExternally(link)
}
}
}
}
}
}