Skip to content

Instantly share code, notes, and snippets.

View marco-piccolino's full-sized avatar

Marco Piccolino marco-piccolino

View GitHub Profile
see below
import QtQuick 2.9
import QtQuick.Window 2.2
import QtCharts 2.0
Window {
id: window
visible: true
width: 640
height: 480
Column{
ListView {
id: groceriesListView
signal itemRemoved(string itemType)
delegate: Item {
Button {
onClicked: groceriesListView.itemRemoved(modelData.type)
}
}
import QtQuick 2.4
import QtQuick.Window 2.2
import Material 0.1
ApplicationWindow {
function fixDensity() {
var galaxyS3mini =
(Screen.width == 480) &&
(Screen.height == 800) &&
(Screen.pixelDensity.toFixed(2) == 6.31) &&