Solved QML Qt Quick Controls 1.4 - Calendar
-
Hi,
How can I switch between years quickly on the Calendar component?
I can only navigate between months, but if I need to navigate many years, it takes a lot of time because I have to click 12x/year. -
There is no direct way. You can use the showNextYear function. See the following sample code.
ApplicationWindow {
visible: true
width: 640
height: 480
title: qsTr("Hello World")Calendar { id : cal } MouseArea { anchors.fill : parent onClicked: { for(var i=0;i<20;i++){ cal.showNextYear(); } } }
}
-
This post is deleted! -
@dheerendra This is not quite what I intend, but after offering the code I am doing.
But, thanks in the same -
If this solved your issue, you can move your question to SOLVED state so that others make use of this.