How create Calendar in QML?
-
wrote on 31 Jan 2022, 14:10 last edited by
Hi! I use Qt 6.2.
How I can create Calendar in QML?
If i do thisimport QtQuick 2.15 Item { width: 1000 height: 550 Calendar { id: calendar anchors.fill: parent } }
then I get the error:
Cyclic dependency detected between "qrc:/Calendar.qml" and "qrc:/CalendarForm.ui.qml" QQmlComponent: Component is not ready
if do this:
import QtQuick.Controls 1.15
then get error:
module "QtQuick.Controls" version 1.15 is not installed
-
wrote on 1 Feb 2022, 03:00 last edited by
Hi. If you can wait to 6.3, there will be a Calendar ready to use. If not:
https://www.ics.com/blog/creating-qml-controls-scratch-datepicker
https://gist.github.com/ilnuribat/5cc6010aea7e35708ff90c65d7be5bcf
Hope this can help
-
wrote on 2 Feb 2022, 06:05 last edited by
I install Qt 6.3 alpha, but calendar not work
3/3