Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Getting started with QML, Python and SQLite
Forum Updated to NodeBB v4.3 + New Features

Getting started with QML, Python and SQLite

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 2 Posters 285 Views 2 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.
  • N Offline
    N Offline
    nazlab
    wrote on 2 Jul 2021, 09:18 last edited by
    #1

    Hi all,

    I am currently developing a software tool as part of my studies. I am using QML and python. The front end is ready and now I am going to start working on the backend.

    Based on some checkboxes that the user selects, I need to search through the database and output the results in a screen.

    Kindly, can anyone direct me on how to tackle this task please? Up to now, I have written a class in python that would open/close/query the database. My concern is on how to store the results and display them. Possibly this involves connections but I am really lost and do not know how to break the problem into pieces.

    Thanks a lot in advance for the support.

    Em

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 2 Jul 2021, 18:32 last edited by
      #2

      Hi,

      What is the format of the results ?
      A list of string ?
      A table of values ?
      Did you consider Qt's QSqlQueryModel ?

      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
      • N Offline
        N Offline
        nazlab
        wrote on 7 Jul 2021, 14:21 last edited by
        #3

        @SGaist Thank you for your reply. Your questions made me think about the strategy I am going to take in handling the contents of the tables. I thought that it might be easier to handle dictionaries through python and then send the info to the front end

        1 Reply Last reply
        0

        2/3

        2 Jul 2021, 18:32

        • Login

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