100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

COS3711 Assignment 1 2024 Solutions

Rating
3.0
(2)
Sold
4
Pages
21
Grade
A+
Uploaded on
30-04-2024
Written in
2023/2024

COS3711 Assignment 1 2024 Solutions with all the code running without any errors. Qt6 was used with Cmake, there are instructions at the bottom of the file on how to install Qt6 with Cmake and how to create the project and run the code provided with this document. If you are facing problems please get in touch with us at the number provided we will assist.

Show more Read less
Institution
Course









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Course

Document information

Uploaded on
April 30, 2024
Number of pages
21
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

For Assistance with other modules
Call or Whatsapp +27682021794
www.myassignments.co.za




COS3711
Assignment 01
2024

Due date
14 May 2024

, QUESTION 1
mainwindow.h
#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QLineEdit>
#include <QDateTimeEdit>
#include <QCheckBox>
#include <QListWidget>
#include <QPushButton>
#include "ReviewData.h"

class MainWindow : public QMainWindow
{
Q_OBJECT

public:
MainWindow(QWidget *parent = nullptr);

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

private:
QListWidget *listWidget;
QPushButton *addButton;
QPushButton *printButton;
QLineEdit *nameLineEdit;
QDateTimeEdit *dateEdit;
QCheckBox *recommendedCheckBox;
QList<ReviewData> reviews;
};
#endif // MAINWINDOW_H


mainwindow.cpp
#include "mainwindow.h"
#include "reviewdata.h"
#include <QVBoxLayout>
#include <QDateTime>
#include <QLabel>
#include <QDebug>
#include <QMessageBox>

MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent) {
QWidget *centralWidget = new QWidget(this);
setCentralWidget(centralWidget);

QVBoxLayout *layout = new QVBoxLayout;
centralWidget->setLayout(layout);

2

Reviews from verified buyers

Showing all 2 reviews
1 year ago

1 year ago

3.0

2 reviews

5
0
4
1
3
0
2
1
1
0
Trustworthy reviews on Stuvia

All reviews are made by real Stuvia users after verified purchases.

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
MyAssignments My Assignments
Follow You need to be logged in order to follow users or courses
Sold
171
Member since
4 year
Number of followers
144
Documents
38
Last sold
4 months ago
My Assignments

3.8

21 reviews

5
11
4
3
3
2
2
1
1
4

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions