I want to add date and time picker in my application to set date and time. I am using the below code, for that I got error as "Unknown Component." How can I add date and time picker in qt qm?
import QtQuick 2.9
import QtQuick.Controls 2.5
ApplicationWindow {
id: main
Datepicker {
id: myDate
activeWindow: main
width: 200
}
TimePicker {
id: timePicker
anchors.centerIn: parent
}
}