Results 1 to 2 of 2

Thread: databese connectitvity

  1. #1
    Join Date
    Aug 2015
    Posts
    7
    Qt products
    Qt5
    Platforms
    Windows Android

    Smile databese connectitvity

    hello everyone
    I am new to qt.
    I am developing an android app using qt plz tell me how to connect sqlite database using qt quick(qml).
    Last edited by Yogesh soni; 14th September 2015 at 06:08.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: databese connectitvity

    On the C++ side of your application you create a model that exports the database data to QML.

    For example wrapping a QSqlQueryModel in a list model implementation which maps roles to columns, or deriving from one of the QSql models and mapping towards the base class.

    Cheers,
    _

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
  •  
Qt is a trademark of The Qt Company.