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. How to search in database
Forum Updated to NodeBB v4.3 + New Features

How to search in database

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 3 Posters 3.3k 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.
  • P Offline
    P Offline
    prabhatjha
    wrote on last edited by
    #1

    I have a database in which five fields FileName,Tag,Date,Time and Description about files.
    now i want to search the database from description. for this i have added a lineedit_description and a search button in my gui.when we will search by description then i want to show all the data they have same description in a tableview.please tell me how i can do this. thanks in advance.

    1 Reply Last reply
    0
    • L Offline
      L Offline
      leon.anavi
      wrote on last edited by
      #2

      What kind of database are you using?

      http://anavi.org/

      1 Reply Last reply
      0
      • P Offline
        P Offline
        prabhatjha
        wrote on last edited by
        #3

        Sqlite ...

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andreyc
          wrote on last edited by
          #4

          Take look on "this example":http://qt-project.org/doc/qt-5/qtsql-sqlbrowser-example.html it shows how to send a query to a database and how to display it.
          Full set of database example is "here":http://qt-project.org/doc/qt-5/examples-sql.html

          1 Reply Last reply
          0
          • L Offline
            L Offline
            leon.anavi
            wrote on last edited by
            #5

            In addition to the links posted above I would also suggest:

            • the SQLite documentation for "SELECT statement":http://www.sqlite.org/lang_select.html
            • "Qt SQL Database Drivers":http://qt-project.org/doc/qt-5/sql-driver.html

            http://anavi.org/

            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