Results 1 to 2 of 2

Thread: building a UI mapped to a class.

  1. #1
    Join Date
    Jul 2011
    Posts
    10
    Qt products
    Qt4
    Platforms
    Windows

    Default building a UI mapped to a class.

    Hello:
    I have a question concerning building a database driven application. I have a person class:
    Qt Code:
    1. class Person
    2. {
    3. QString name;
    4. QString phone_number;
    5. };
    To copy to clipboard, switch view to plain text mode 

    I would like to build a corresponding UI to this class. And when the User hits the "Submit" button on the UI the Person class gets populated from the data of the UI and then this populated object is used to insert the data in a database. WHat I am not clear is as to how should the links between the UI, the class object be maintained so as to achieve the above behavior.

  2. #2
    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: building a UI mapped to a class.


Similar Threads

  1. QImage and Memoey Mapped Files
    By Leviathan in forum Qt Programming
    Replies: 3
    Last Post: 25th July 2010, 09:57
  2. create Memory-mapped file
    By weixj2003ld in forum Newbie
    Replies: 2
    Last Post: 17th April 2009, 10:47
  3. QMYSQL CHAR(1) mapped to QString
    By juannm in forum Qt Programming
    Replies: 2
    Last Post: 25th August 2008, 10:18
  4. Support for File Mapped Memory?
    By Jachyra in forum Qt Programming
    Replies: 8
    Last Post: 5th February 2007, 12:44
  5. Replies: 2
    Last Post: 4th February 2007, 22:03

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.