Big bang
This commit is contained in:
22
src/qml/main.qml
Normal file
22
src/qml/main.qml
Normal file
@@ -0,0 +1,22 @@
|
||||
import QtQuick 2.12
|
||||
import QtQuick.Controls 2.5
|
||||
import QtQuick.Layouts 1.3
|
||||
import Magnum 1.0
|
||||
|
||||
ApplicationWindow {
|
||||
id: app
|
||||
visible: true
|
||||
width: 640
|
||||
height: 480
|
||||
title: qsTr("My Application")
|
||||
|
||||
Shortcut {
|
||||
sequence: "q"
|
||||
onActivated: app.close()
|
||||
}
|
||||
|
||||
Magnum {
|
||||
anchors.fill: parent
|
||||
hue: hue.value
|
||||
}
|
||||
}
|
||||
6
src/qml/main.qrc
Normal file
6
src/qml/main.qrc
Normal file
@@ -0,0 +1,6 @@
|
||||
<RCC>
|
||||
<qresource prefix="/">
|
||||
<file>main.qml</file>
|
||||
<file>qtquickcontrols2.conf</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
9
src/qml/qtquickcontrols2.conf
Normal file
9
src/qml/qtquickcontrols2.conf
Normal file
@@ -0,0 +1,9 @@
|
||||
; This file can be edited to change the style of the application
|
||||
; Read "Qt Quick Controls 2 Configuration File" for details:
|
||||
; http://doc.qt.io/qt-5/qtquickcontrols2-configuration.html
|
||||
|
||||
[Controls]
|
||||
Style=Fusion
|
||||
|
||||
[Fusion\Palette]
|
||||
Highlight=#ff0000
|
||||
Reference in New Issue
Block a user