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. [Solved]how to take input date from user and show related data saved in a database and display in listview model base
QtWS25 Last Chance

[Solved]how to take input date from user and show related data saved in a database and display in listview model base

Scheduled Pinned Locked Moved General and Desktop
sqlqcalendarwidget
4 Posts 2 Posters 999 Views
  • 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
    Gillou_beginqt
    wrote on 22 Jul 2015, 20:17 last edited by Gillou_beginqt
    #1

    I am a beginner in gui programming using qt framework. I have a project where according to the date selected from the user in a qcalendar widget, the corresponding entry will be display in listview model base widget. How can I do that? Thank you

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 22 Jul 2015, 22:27 last edited by
      #2

      Hi,

      You can use a QSqlQueryModel and filter your database content based on the date selected.

      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
      1
      • G Offline
        G Offline
        Gillou_beginqt
        wrote on 23 Jul 2015, 12:22 last edited by
        #3

        Yes, Thank you for your help

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 23 Jul 2015, 21:21 last edited by
          #4

          You're welcome !

          If this answers your question, please update the thread title prepending [solved] so other forum uses may know a solution has been found :)

          Also, consider up-voting answer(s) that helped you, it will make it easier for other users to find them.

          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

          1/4

          22 Jul 2015, 20:17

          • Login

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