Skip to content
Snippets Groups Projects
Commit 33238813 authored by Massies Alexandre's avatar Massies Alexandre
Browse files

début cases

parent 2a95ebf4
Branches
No related tags found
No related merge requests found
import QtQuick
Item {
id: _item
property alias _textText: _text.text
width: 30
height: 30
focus: true
Rectangle {
id: rectangle
width: 30
height: 30
color: "#453c3c"
radius: 4
border.width: 4
anchors.verticalCenter: parent.verticalCenter
anchors.horizontalCenter: parent.horizontalCenter
Text {
id: _text
width: 30
height: 30
color: "#ffffff"
text: qsTr("A")
anchors.verticalCenter: parent.verticalCenter
font.pixelSize: 20
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
anchors.verticalCenterOffset: 0
anchors.horizontalCenterOffset: 0
font.bold: true
clip: false
anchors.horizontalCenter: parent.horizontalCenter
}
}
}
...@@ -5,7 +5,8 @@ SOURCES += \ ...@@ -5,7 +5,8 @@ SOURCES += \
resources.files = main.qml resources.files = main.qml
resources.prefix = /$${TARGET} resources.prefix = /$${TARGET}
RESOURCES += resources RESOURCES += resources \
Resources.qrc
# Additional import path used to resolve QML modules in Qt Creator's code model # Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH = QML_IMPORT_PATH =
...@@ -17,3 +18,6 @@ QML_DESIGNER_IMPORT_PATH = ...@@ -17,3 +18,6 @@ QML_DESIGNER_IMPORT_PATH =
qnx: target.path = /tmp/$${TARGET}/bin qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target !isEmpty(target.path): INSTALLS += target
DISTFILES += \
Case.qml
<RCC>
<qresource prefix="/">
<file>Case.qml</file>
</qresource>
</RCC>
...@@ -4,5 +4,12 @@ Window { ...@@ -4,5 +4,12 @@ Window {
width: 640 width: 640
height: 480 height: 480
visible: true visible: true
color: "#453c3c"
title: qsTr("Hello World") title: qsTr("Hello World")
Case {
id: _case
x: 199
y: 274
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment