100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
COS3711 Assignment 1 2024 solution $9.77   Add to cart

Other

COS3711 Assignment 1 2024 solution

2 reviews
 178 views  18 purchases
  • Course
  • Institution

COS3711 Assignment 1 2024 solution. Please use CMake (and not qmake) when setting up your assignment projects. Qt Designer should not be used to design user interfaces, and you are expected to manually set up GUIs to ensure that you properly handle memory using Qt’s parent-child functionality. ...

[Show more]

Preview 7 out of 23  pages

  • May 13, 2024
  • 23
  • 2023/2024
  • Other
  • Unknown

2  reviews

review-writer-avatar

By: luwayla • 5 months ago

review-writer-avatar

By: u13259408 • 6 months ago

avatar-seller
COS3711 2024 ASSIGNMENT 1
SOLUTION
THERE IS A LINK TO THE ZIPPED FILE AT THE END OF THIS DOCUMENT



Crystal Indigo!
Crystal Indigo!
Providing all solutions you need anytime
+27 76 626 8187




**NOTE: if the GUI is displaying differently from what you desire just change
how the widgets are displayed. copy the code and run DO necessary
changes.

,//GUI representation
Question 1

,Question 2

,Question 3

,Question 4

,
, //Source code
Question 1

Mainwindow.h
#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QLineEdit>
#include <QDateEdit>
#include <QCheckBox>
#include <QPushButton>
#include <QVBoxLayout>
#include <QVector>
#include "review.h"

class MainWindow : public QMainWindow {
Q_OBJECT

public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();

private slots:
void addReview();
void displayReviews();

private:
QLineEdit *nameEdit;
QDateEdit *dateEdit;
QCheckBox *recommendBox;
QPushButton *addButton;
QPushButton *displayButton;
QVBoxLayout *layout;
QVector<Review> reviews;
};

#endif // MAINWINDOW_H




mainwindow.cpp
#include "mainwindow.h"
#include <QDebug>
#include <QLabel>

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller CrystalIndigo. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $9.77. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

78075 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$9.77  18x  sold
  • (2)
  Add to cart