Display all dates between two dates in TableWidget



  • Hello Community,

    i have a problem and don't know how to solve it.
    In my Userinterface i have two QDateEdit layouts. One QDateEdit layout is to set the start date and the other one for the end date. Between the both dates i would like to display all dates in a TableWidget layout.
    Let's assume the start date is set to 20.08.2014 and the end date to 20.09.2014. In each row i would like to see the dates between 20.08.2014 and 20.09.2014.

    Is there a simply way to implement this in Qt.

    Thanks for any help.

    Regards,
    Sengün


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    You, can use a for loop, a QDate and increment it using addDays.

    Hope it helps


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.