Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 3 Support (Qt 5) › How to check if a tumbler on a DatePicker is being changed?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #24191

    Jens

    I have two DatePicker objects in a page. When the day tumbler on the top DatePicker is being changed, I want to change the day tumbler on the lower DatePicker to whatever the top one is being set to. To do this, I obviously need to check if the day tumbler on the top DatePicker is being changed.

    I tried to use “onDayTumblerChanged:” to do this, but it’s not working. When I spin the wheels on the DatePicker, the method does not start and nothing happens. The method only runs once when the page is opened. I assume I have misunderstood what “onDayTumblerChanged:” does, so how can I check if a wheel on a DatePicker is being changed?

    #24195

    Filippo

    Hi Jens,

    the onDayTumberChanged slot is invoked when the actual day Tumbler object changes, so basically only when you swap it out for a new object.

     

    I’d suggest using the isMoving signal, when that changes to false you can safely read the current day and update the other date picker.

Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded