Logo
Explore Help
Sign In
feedc0de/qt-creator
1
0
Fork 0
You've already forked qt-creator
forked from qt-creator/qt-creator
Code Pull Requests Activity
Files
5e059db065b1680c4f08b901b64f102300eda6e6
qt-creator/tests/auto/qml/qmldesigner/data/merging/RootReplacementStyle.qml

25 lines
401 B
QML
Raw Normal View History

Add stylesheet merger Adds classes to merge a template qml file and a qml stylesheet that have been exported from other design tools into a resulting qml file that can be used for further processing in Qt Design Studio. Current issues: * Sometimes it makes sense to define width and height if an anchor is present, but most of the time not. * Actually if the hierachy was defined (e.g. Text item not child of background) most likely the anchors should be ignored. But this would be just a "dirty" heuristic. I suggest to let the template decide. If the template has anchors those have "precedence". It is always possible to define templates without anchors. Task-number: QDS-2071 Change-Id: I9159514a8e884b7ffc31897aef4551b5efbbcb87 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-05-07 16:43:39 +02:00
import QtQuick 2.1
Item {
id: root
Rectangle {
id: rectangle0
Image {
id: rectangle1
x: 10
y: 10
height: 150
width: 100
source: "qt/icon.png"
}
}
Image {
id: rectangle4
x: 10;
y: 10;
height: 150
width: 100
source: "qt/realcool.jpg"
}
}
Copy Permalink
Powered by Gitea Version: 1.25.1 Page: 128ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API