Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • alcroito/qt-ui-viewer
  • design-studio/design-viewer/qt-ui-viewer
2 results
Show changes
Showing
with 512 additions and 0 deletions
tests/android/res/mipmap-xxhdpi/app_icon.png

13 KiB

tests/android/res/mipmap-xxhdpi/ic_launcher.webp

3.79 KiB

tests/android/res/mipmap-xxhdpi/ic_launcher_round.webp

7.01 KiB

tests/android/res/mipmap-xxxhdpi/app_icon.png

30 KiB

tests/android/res/mipmap-xxxhdpi/ic_launcher.webp

4.65 KiB

tests/android/res/mipmap-xxxhdpi/ic_launcher_round.webp

9.29 KiB

<!--
~ Copyright (C) 2023 The Android Open Source Project
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<resources>
<string name="app_name">Qt UI Viewer</string>
</resources>
Imported 3D assets and components imported from bundles will be created in this folder.
[Controls]
Style=Basic
[Material]
Theme=Light
[Universal]
Theme=System
<RCC>
<qresource>
<file>qtquickcontrols2.conf</file>
<file>test_project.qmlproject</file>
<file>test_project/Constants.qml</file>
<file>test_project/EventListModel.qml</file>
<file>test_project/EventListSimulator.qml</file>
<file>test_project/qmldir</file>
<file>test_projectContent/App.qml</file>
<file>test_projectContent/Screen01.ui.qml</file>
</qresource>
</RCC>
\ No newline at end of file
import QmlProject
Project {
mainFile: "test_projectContent/App.qml"
mainUiFile: "test_projectContent/Screen01.ui.qml"
/* Include .qml, .js, and image files from current directory and subdirectories */
QmlFiles {
directory: "test_project"
}
QmlFiles {
directory: "test_projectContent"
}
QmlFiles {
directory: "Generated"
}
JavaScriptFiles {
directory: "test_project"
}
JavaScriptFiles {
directory: "test_projectContent"
}
ImageFiles {
directory: "test_projectContent"
}
ImageFiles {
directory: "Generated"
}
Files {
filter: "*.conf"
files: ["qtquickcontrols2.conf"]
}
Files {
filter: "qmldir"
directory: "."
}
Files {
filter: "*.ttf;*.otf"
}
Files {
filter: "*.wav;*.mp3"
}
Files {
filter: "*.mp4"
}
Files {
filter: "*.glsl;*.glslv;*.glslf;*.vsh;*.fsh;*.vert;*.frag"
}
Files {
filter: "*.qsb"
}
Files {
filter: "*.json"
}
Files {
filter: "*.mesh"
directory: "Generated"
}
Files {
filter: "*.qad"
directory: "Generated"
}
Environment {
QT_QUICK_CONTROLS_CONF: "qtquickcontrols2.conf"
QML_COMPAT_RESOLVE_URLS_ON_ASSIGNMENT: "1"
QT_LOGGING_RULES: "qt.qml.connections=false"
QT_ENABLE_HIGHDPI_SCALING: "0"
/* Useful for debugging
QSG_VISUALIZE=batches
QSG_VISUALIZE=clip
QSG_VISUALIZE=changes
QSG_VISUALIZE=overdraw
*/
}
qt6Project: true
/* List of plugin directories passed to QML runtime */
importPaths: [ "." ]
/* Required for deployment */
targetDirectory: "/opt/UntitledProject49"
qdsVersion: "4.7"
quickVersion: "6.8"
/* If any modules the project imports require widgets (e.g. QtCharts), widgetApp must be true */
widgetApp: true
/* args: Specifies command line arguments for qsb tool to generate shaders.
files: Specifies target files for qsb tool. If path is included, it must be relative to this file.
Wildcard '*' can be used in the file name part of the path.
e.g. files: [ "UntitledProject49Content/shaders/*.vert", "*.frag" ] */
ShaderTool {
args: "-s --glsl \"100 es,120,150\" --hlsl 50 --msl 12"
files: [ "test_projectContent/shaders/*" ]
}
multilanguageSupport: true
supportedLanguages: ["en"]
primaryLanguage: "en"
}
pragma Singleton
import QtQuick
import QtQuick.Studio.Application
QtObject {
readonly property int width: 1920
readonly property int height: 1080
property string relativeFontDirectory: "fonts"
/* Edit this comment to add your custom font */
readonly property font font: Qt.font({
family: Qt.application.font.family,
pixelSize: Qt.application.font.pixelSize
})
readonly property font largeFont: Qt.font({
family: Qt.application.font.family,
pixelSize: Qt.application.font.pixelSize * 1.6
})
readonly property color backgroundColor: "#EAEAEA"
property StudioApplication application: StudioApplication {
fontPath: Qt.resolvedUrl("../UntitledProject49Content/" + relativeFontDirectory)
}
}
import QtQuick
ListModel {
id: eventListModel
ListElement {
eventId: "enterPressed"
eventDescription: "Emitted when pressing the enter button"
shortcut: "Return"
parameters: "Enter"
}
}
import QtQuick
import QtQuick.Studio.EventSimulator
import QtQuick.Studio.EventSystem
QtObject {
id: simulator
property bool active: true
property Timer __timer: Timer {
id: timer
interval: 100
onTriggered: {
EventSimulator.show()
}
}
Component.onCompleted: {
EventSystem.init(Qt.resolvedUrl("EventListModel.qml"))
if (simulator.active)
timer.start()
}
}
MetaInfo {
Type {
name: "UntitledProject49.EventListSimulator"
icon: ":/qtquickplugin/images/item-icon16.png"
Hints {
visibleInNavigator: true
canBeDroppedInNavigator: true
canBeDroppedInFormEditor: false
canBeDroppedInView3D: false
}
}
}
module UntitledProject49
singleton Constants 1.0 Constants.qml
EventListSimulator 1.0 EventListSimulator.qml
EventListModel 1.0 EventListModel.qml
import QtQuick
import test_project
Window {
width: mainScreen.width
height: mainScreen.height
visible: true
title: "test_project"
Screen01 {
id: mainScreen
}
}
/*
This is a UI file (.ui.qml) that is intended to be edited in Qt Design Studio only.
It is supposed to be strictly declarative and only uses a subset of QML. If you edit
this file manually, you might introduce QML code that is not supported by Qt Design Studio.
Check out https://doc.qt.io/qtcreator/creator-quick-ui-forms.html for details on .ui.qml files.
*/
import QtQuick
import QtQuick.Controls
import test_project
import QtQuick.Studio.DesignEffects
import QtQuick.Studio.Components
import QtQuick.Studio.Effects
import QtQuick.Studio.LogicHelper
import QtQuick.Studio.MultiText
import QtCharts
import QtGraphs
import QtQuick.Layouts
import QtQuick3D
import QtQuick.Controls.FluentWinUI3
import QtQuick.Effects
import QtQuick.Studio.Utils
import QtQuick.Studio.Application
import QtQuick.Timeline.BlendTrees
import QtQuick.VectorImage
import QtQuick.Window
import QtQuick3D.AssetUtils
import QtQuick3D.Effects
import QtQuick3D.Helpers
import QtQuick3D.Particles3D
import QtQuick3D.Physics
import QtQuick.Timeline
import QtNetwork
import QtQuick3D.Physics.Helpers
import QtMultimedia
import QtQuick3D.SpatialAudio
import QtQuick3D.Xr
import QtQuickUltralite.Extras
import QtQuickUltralite.Studio.Components
import QtQuickUltralite.Profiling
import QtQuickUltralite.Layers
import FlowView
import test
Rectangle {
id: rectangle
width: Constants.width
height: Constants.height
color: Constants.backgroundColor
Button {
id: button
text: qsTr("Press me")
anchors.verticalCenter: parent.verticalCenter
checkable: true
anchors.horizontalCenter: parent.horizontalCenter
Connections {
target: button
onClicked: animation.start()
}
DesignEffect {
backgroundLayer: button
backgroundBlurRadius: 5
layerBlurRadius: 2
effects: [
DesignDropShadow {},
DesignDropShadow {}
]
}
}
Text {
id: label
text: qsTr("Hello UntitledProject49")
anchors.top: button.bottom
font.family: Constants.font.family
anchors.topMargin: 45
anchors.horizontalCenter: parent.horizontalCenter
SequentialAnimation {
id: animation
ColorAnimation {
id: colorAnimation1
target: rectangle
property: "color"
to: "#2294c6"
from: Constants.backgroundColor
}
ColorAnimation {
id: colorAnimation2
target: rectangle
property: "color"
to: Constants.backgroundColor
from: "#2294c6"
}
}
}
Button {
id: button1
x: 930
y: 466
text: qsTr("Button")
}
CheckBox {
id: checkBox
x: 918
y: 417
text: qsTr("Check Box")
}
ComboBox {
id: comboBox
x: 900
y: 563
}
RadioButton {
id: radioButton
x: 897
y: 632
text: qsTr("Radio Button")
}
RadioDelegate {
id: radioDelegate
x: 881
y: 677
text: qsTr("Radio Delegate")
}
RoundButton {
id: roundButton
x: 864
y: 490
text: "+"
}
Slider {
id: slider
x: 859
y: 375
value: 0.5
}
RangeSlider {
id: rangeSlider
x: 859
y: 333
second.value: 0.75
first.value: 0.25
}
Switch {
id: _switch
x: 845
y: 438
text: qsTr("Switch")
}
Button {
id: button2
x: 1090
y: 473
text: qsTr("Button")
}
ArcItem {
id: arc
x: 1090
y: 333
fillColor: "#00000000"
}
EllipseItem {
id: ellipse
x: 628
y: 333
}
BorderItem {
id: _border
x: 628
y: 508
adjustBorderRadius: true
}
FlipableItem {
id: flipable
x: 1066
y: 532
}
TriangleItem {
id: triangle
x: 669
y: 677
}
Item {
id: __materialLibrary__
}
ChartView {
id: bar
x: 1257
y: 340
width: 300
height: 300
BarSeries {
name: "BarSeries"
BarSet {
values: [2, 2, 3]
label: "Set1"
}
BarSet {
values: [5, 1, 2]
label: "Set2"
}
BarSet {
values: [3, 5, 8]
label: "Set3"
}
}
}
DesignEffect {
visible: true
effects: [
DesignInnerShadow {},
DesignDropShadow {}
]
}
states: [
State {
name: "clicked"
when: button.checked
PropertyChanges {
target: label
text: qsTr("Button Checked")
}
}
]
}
Fonts in this folder are loaded automatically.
Default folder for image assets.