Results 1 to 4 of 4

Thread: a c++ GUI with QT

  1. #1
    Join Date
    Mar 2018
    Posts
    4
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default a c++ GUI with QT

    Hello there If your good at QT already than this is probably a cake-walk for you, but Im new to QT so for me it was a bit tricky. My problem is that I have an assignement due for saturday . Actually i have to create a Gui with Qt. And all i was able to do was to write the declaration of the classes. And our teacher didn't even teach us how to use Qt. I know i should do it by my own but it's a whole new programming stuff and i don't have enough time i have also a project in english, php but those two i cna handle them. So if you guys please could help me just to give me the beginning i'm not asking for a whole resolution of my assignment do here is the subject
    q1.jpg.

    In this link you can find what i have done so far → http://txt.do/dgf0y .

    And here is what the teacher ask us to do

    1. Create the corresponding classes

    2. Create the necessaries .h and .cpp files

    3. create the Qt's interfaces for handling the manipulation of the data

    4. Save in a file all the data created in the creation of each object

    5. TRansfer the content of the file in a database

    All help needed and thank for your understanding.

  2. #2
    Join Date
    Jan 2009
    Location
    Germany
    Posts
    387
    Thanks
    101
    Thanked 15 Times in 15 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: a c++ GUI with QT

    Hi!

    I assume that you are basically finished with task 1. and 2. A quick scroll through the page you linked shows me that your classes look okay at first glance.

    To attack task 3, I think it's best if you familiarize yourself with the line edits example.
    Basically, you will have to create a gui with line edits that reflect the fields of your classes, i.e. their name, age, etc. When the user has filled in the lines, he
    presses a button and triggers an event in your gui that reads the contents of the lines and uses the setter functions of your classes to pour the data into your classes.

    For task 4., take a look at the documentation of QDataStream and the examples given within.

    I am not sure what kind of databases you are dealing with in task 5. Is it an SQL database? Qt has something for that, too.

  3. #3
    Join Date
    Aug 2015
    Posts
    20
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: a c++ GUI with QT

    in Youtube you will find examples how to create the files,
    The sites are "Qt Tutorials for Beginners" or "QT C++ GUI Tutorial"

  4. #4
    Join Date
    Mar 2018
    Posts
    4
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: a c++ GUI with QT

    Hello Cruz and kbsk007 thanks for your help i will try to follow that .
    And Cruz for the database, it's the one with Wamp

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.