Hi All,
I want to use an AppSlider. When testing how it resizes after changing the app resolution, I noticed it doesn’t resize appropriately.
Example:
import Felgo 3.0
import QtQuick 2.0
import QtQuick.Controls 2.0 as QuickControls2
App {
NavigationStack {
Page {
title: qsTr("Main Page")
Column {
anchors.fill: parent
SimpleRow {
id: row
text: "Test: " + Math.round(slider.value)
AppSlider {
id: slider
anchors {right: parent.right; rightMargin: Theme.listItem.indent; verticalCenter: parent.verticalCenter}
width: dp(200)
onWidthChanged: console.debug(width)
implicitWidth: dp(200)
onImplicitWidthChanged: console.debug(implicitWidth)
from: 0
to: 7
value: 0
stepSize: 1
snapMode: QuickControls2.Slider.SnapAlways
}
}
}
Image {
source: "../assets/vplay-logo.png"
anchors.centerIn: parent
}
}
}
}
Try changing the app resolution to the smallest one and notice how the AppSlider’s width doesn’t change.
Any suggestions on how to get a resolution friendly AppSlider working?
Many thanks!