Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Display all dates between two dates in TableWidget
Forum Updated to NodeBB v4.3 + New Features

Display all dates between two dates in TableWidget

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 586 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    giresunlu88
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

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

      Hope it helps

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved