QDate API does not have set button
Hello I am using version 1.00 beta 16 and I don’t see a provision to set (button) a date with new API, it used to be there on versions less than 1. Any help on this really appreciated
Do you mean you want a button to open the calendar? You want to look at the With QInput example on the QDate page. You should be able to substitute a button for the QInput, I think. Let us know if that works. I’m just using QInput as shown since I do want the users to manually type if they want to.
@rconstantine I should have been a little more detail on the question. Sorry. I have an input box which has calendar image, upon clicking on the calendar the date window popsup.
I have an option to set today-btn to true, but if the user selects a date from the calendar and I don’t see a way for the user to set the selected date from the calendar.
They have to move the cursor away from the calendar and select so that the calendar disappers. By default the versions less than 1 has set and cancel buttons.
Ah, yeah. There’s a discussion in another thread here about that. I miss the buttons too. I believe since we use the popup thing, we can use a QCard to wrap the calendar and put buttons on the bottom. I might do that.
Hawkeye64 last edited by
You should check out https://github.com/TobyMosque/app-extension-qdatetimepicker since you are running v1.
Demo here: https://qdatetimepicker.netlify.com/#/
@Hawkeye64 Thank you so much, the extension worked great.