Results 1 to 3 of 3

Thread: Guide for form creation in QT creator and to store values in SQLite

  1. #1
    Join Date
    Feb 2012
    Posts
    1
    Thanks
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Guide for form creation in QT creator and to store values in SQLite

    Hi,

    I'm entirely new to QT. My requirement is, I need to create a form which gets integer, string from the user and stores it in SQLite or any other database. I'm using QT creator 4 in windows7. I need a step by step guide to do this right from designing a form to execution. Please post links and codings related to this.

    Thanks,
    Siva

  2. #2
    Join Date
    Jan 2012
    Location
    Argentina
    Posts
    167
    Thanks
    33
    Thanked 10 Times in 10 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Guide for form creation in QT creator and to store values in SQLite

    Lol.....so many questions for your first post..

    Well first of all create a Widget, or dialog, and add the fields you want to get the data from (for example a QLabel and a Line Edit, the first tells the user what data to insert and the latter is going to be the field where the user is going to enter the data)...Finally create a button and connect it to a slot where you do all the passing to the database..thats the general idea...When you create all this post your code and if something goes wrong i`ll help you.

  3. The following user says thank you to KillGabio for this useful post:

    sivamsp (16th February 2012)

  4. #3
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Guide for form creation in QT creator and to store values in SQLite

    I'm entirely new to QT. My requirement is, I need to create a form which gets integer, string from the user and stores it in SQLite or any other database. I'm using QT creator 4 in windows7. I need a step by step guide to do this right from designing a form to execution. Please post links and codings related to this.
    ... and I need a pink unicorn but I cannot expect someone else to deliver one to me: I have to actually do some work to prove I can care for unicorns...

    Read the friendly manual especially How to Learn Qt and some of the dozens of examples. When you have an idea what is possible and have made a start for yourself you might be able to ask specific questions about difficulties you encounter.

    It should not take more than a couple of hours to get to the point of a running GUI. Perhaps a few more to get to an SQL database.

  5. The following user says thank you to ChrisW67 for this useful post:

    sivamsp (16th February 2012)

Similar Threads

  1. Replies: 1
    Last Post: 3rd June 2009, 20:08
  2. Multiple form object creation
    By kpmsivachand in forum Qt Programming
    Replies: 2
    Last Post: 3rd February 2009, 02:09
  3. How to pass values in 1 form to another
    By maveric in forum Newbie
    Replies: 4
    Last Post: 5th June 2008, 08:18
  4. Designer form creation very slow
    By MrGarbage in forum Qt Programming
    Replies: 3
    Last Post: 7th December 2007, 23:20
  5. Import PostgreSQL Values to SQLITE
    By raphaelf in forum Newbie
    Replies: 2
    Last Post: 24th May 2007, 18:56

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.