Results 1 to 5 of 5

Thread: Database programming using Qt

  1. #1
    Join Date
    Apr 2011
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Database programming using Qt

    What resources do you recommend for getting up and running with database programming using Qt?

    Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Database programming using Qt

    Qt Reference Manual.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Apr 2011
    Posts
    124
    Thanks
    1
    Thanked 10 Times in 10 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows Symbian S60

    Default Re: Database programming using Qt

    If you're going to use SQLite then the SQLite web site is a good resource.

  4. #4
    Join Date
    Oct 2010
    Posts
    55
    Thanks
    1
    Thanked 11 Times in 10 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    9

    Default Re: Database programming using Qt

    List of database-related classes in Qt from the docs:

    QSql
    Contains miscellaneous identifiers used throughout the Qt SQL library
    QSqlDatabase
    Represents a connection to a database
    QSqlDriver
    Abstract base class for accessing specific SQL databases
    QSqlDriverCreator
    Template class that provides a SQL driver factory for a specific driver type
    QSqlDriverCreatorBase
    The base class for SQL driver factories
    QSqlError
    SQL database error information
    QSqlField
    Manipulates the fields in SQL database tables and views
    QSqlIndex
    Functions to manipulate and describe database indexes
    QSqlQuery
    Means of executing and manipulating SQL statements
    QSqlQueryModel
    Read-only data model for SQL result sets
    QSqlRecord
    Encapsulates a database record
    QSqlRelationalTableModel
    Editable data model for a single database table, with foreign key support
    QSqlResult
    Abstract interface for accessing data from specific SQL databases
    QSqlTableModel
    Editable data model for a single database table
    There is a bunch of examples as well, they are all available from the welcome screen in the IDE:

    http://doc.trolltech.com/4.5/sql-cachedtable.html
    http://doc.trolltech.com/4.5/sql-drilldown.html
    http://doc.trolltech.com/4.5/sql-querymodel.html
    http://doc.trolltech.com/4.5/sql-rel...ablemodel.html
    http://doc.trolltech.com/4.5/sql-tablemodel.html
    http://doc.trolltech.com/4.5/sql-sqlwidgetmapper.html
    Last edited by helloworld; 6th June 2011 at 14:01.

  5. #5
    Join Date
    Nov 2010
    Location
    Budapest, Hungary
    Posts
    125
    Thanks
    17
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Database programming using Qt

    I startedwith http://doc.trolltech.com/4.5/sql-cachedtable.html that hellowold already suggested, but afterwards I guess it depends on what sort of database you are goung to use.
    Szilvi

Similar Threads

  1. Three Tier Database Programming - Design Pattern
    By sunil.thaha in forum Qt Programming
    Replies: 3
    Last Post: 8th July 2011, 04:00
  2. [SOLVED] database opened .. database not open
    By kapitanluffy in forum Qt Programming
    Replies: 1
    Last Post: 27th February 2011, 10:39
  3. Replies: 9
    Last Post: 20th May 2010, 09:55
  4. New to QT Programming
    By Charlie in forum Qt Programming
    Replies: 4
    Last Post: 22nd August 2007, 19:50
  5. .NET programming
    By mickey in forum General Discussion
    Replies: 1
    Last Post: 12th August 2007, 22:23

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.