Results 1 to 4 of 4

Thread: Qt database to store

  1. #1
    Join Date
    Nov 2011
    Location
    coimbatore
    Posts
    80
    Thanks
    1
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Qt database to store

    hi i am ganesh,
    i dont know how to get input from qt-quick gui to store my Qt-database and how to retrive please anyone tell me.........

  2. #2
    Join Date
    Jan 2012
    Location
    Iran, Tehran
    Posts
    308
    Thanks
    75
    Thanked 24 Times in 21 Posts
    Qt products
    Qt4 Qt5 PyQt3 PyQt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt database to store

    You can use input components like TextInput and TextEdit to get input in qml. After that you have two ways to store them in database: 1) directing from qml to database, 2) send data to Qt (Qt-Qml binding) then store them in database by Qt. I would prefer second way if have C++ classes beside qml in application

  3. #3
    Join Date
    Nov 2011
    Location
    coimbatore
    Posts
    80
    Thanks
    1
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Qt database to store

    thank you alizadeh91's ,

    i am getting input from my qml Textinput ,i dont know how can i store to Qt (qt-qml binding)...if u don't mind please send small example to my mail id (ganesan.bts@gmail.com) please .....please help me ....

  4. #4
    Join Date
    Feb 2013
    Posts
    29
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: Qt database to store

    this is what you need http://qt-project.org/doc/qt-4.8/qtb...ing-properties look at second example

Similar Threads

  1. How store a unsigned short into a database
    By franco.amato in forum Qt Programming
    Replies: 4
    Last Post: 17th January 2011, 22:17
  2. Need ideas on how to store data in SQL-Database
    By homerun4711 in forum Newbie
    Replies: 3
    Last Post: 5th January 2011, 23:10
  3. Replies: 2
    Last Post: 14th September 2009, 08:38
  4. Replies: 5
    Last Post: 8th April 2008, 23:10
  5. Is it possible to store pointers in a database ?
    By probine in forum General Programming
    Replies: 8
    Last Post: 5th April 2006, 21:28

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.