Notes![what is notes.io? What is notes.io?](/theme/images/whatisnotesio.png)
![]() ![]() Notes - notes.io |
import QtQuick.Controls 2.0
import QtQuick.Controls.Styles 1.4
import QtQuick.Extras 1.4
import QtQuick.Extras.Private 1.0
import QtGraphicalEffects 1.0
CircularGauge {
id: gauge
style: CircularGaugeStyle {
labelStepSize: 10
labelInset: outerRadius / 2.2
tickmarkInset: outerRadius / 4.2
minorTickmarkInset: outerRadius / 4.2
minimumValueAngle: -144
maximumValueAngle: 144
background: Rectangle {
implicitHeight: gauge.height
implicitWidth: gauge.width
color: "black"
anchors.centerIn: parent
radius: 360
Image {
anchors.fill: parent
source: "qrc:/img/background.svg"
asynchronous: true
sourceSize {
width: width
}
}
Canvas {
property int value: gauge.value
anchors.fill: parent
onValueChanged: requestPaint()
function degreesToRadians(degrees) {
return degrees * (Math.PI / 180);
}
onPaint: {
var ctx = getContext("2d");
ctx.reset();
ctx.beginPath();
ctx.strokeStyle = "black"
ctx.lineWidth = outerRadius
ctx.arc(outerRadius,
outerRadius,
outerRadius - ctx.lineWidth / 2,
degreesToRadians(valueToAngle(gauge.value) - 90),
degreesToRadians(valueToAngle(gauge.maximumValue + 1) - 90));
ctx.stroke();
}
}
}
needle: Item {
y: -outerRadius * 0.78
height: outerRadius * 0.27
Image {
id: needle
source: "qrc:/img/needle.svg"
height: parent.height
width: height * 0.1
asynchronous: true
antialiasing: true
}
Glow {
anchors.fill: needle
radius: 5
samples: 10
color: "white"
source: needle
}
}
foreground: Item {
Text {
id: speedLabel
anchors.centerIn: parent
text: gauge.value.toFixed(0)
font.pixelSize: outerRadius * 0.3
color: "white"
antialiasing: true
}
}
tickmarkLabel: Text {
font.pixelSize: Math.max(6, outerRadius * 0.05)
text: styleData.value
color: styleData.value <= gauge.value ? "white" : "#777776"
antialiasing: true
}
tickmark: Image {
source: "qrc:/img/tickmark.svg"
width: outerRadius * 0.018
height: outerRadius * 0.15
antialiasing: true
asynchronous: true
}
minorTickmark: Rectangle {
implicitWidth: outerRadius * 0.01
implicitHeight: outerRadius * 0.03
antialiasing: true
smooth: true
color: styleData.value <= gauge.value ? "white" : "darkGray"
}
}
}
![]() |
Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 12 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team