Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 3 out of 19 pages
Exam (elaborations)

INF2611 Assignment 4 2025 - Due 16 September 2025

Document preview thumbnail
Preview 3 out of 19 pages

INF2611 Assignment 4 2025 - Due 16 September 2025 100% solved answers.Stop starting from scratch.Download your copy today and get a head start.

Content preview

INF2611
Assignment 4
Unique No:
Due 16 September 2025

,INF2611 – Assignment 4

Question 1 (40 marks)

Question

Create a four-page Graphical User Interface (GUI) using Qt Designer.

 Page 1 must serve as a login screen with fields for username and password.
 The other three pages should each implement a custom user interface of your
choice, and must include:
o the use of various widgets,
o a calendar component,
o and the display of a graphic logo.
 Integrate file handling or MySQLdb for data storage.
 Provide the .py source code for each GUI file (GUI code 1–4) and screenshots.

Answer to Question 1

Below is a working Python implementation of the four GUIs.


⚠️Note: For the first page (login), replace
InsertYourSurname and InsertYourStudentNumber with your own surname (username)
and student number (password). If this step is skipped, login validation will not
succeed.

GUI Code 1 – Login Screen (gui1_login.py)
# gui1_login.py
# GUI Page 1: Login screen


from PyQt5.QtWidgets import (
QWidget, QLabel, QLineEdit, QPushButton, QVBoxLayout, QHBoxLayout,
QMessageBox

, )
from PyQt5.QtGui import QFont, QPixmap
from PyQt5.QtCore import Qt


# Credentials (replace with your own)
EXPECTED_USERNAME = "InsertYourSurname"
EXPECTED_PASSWORD = "InsertYourStudentNumber"


class LoginPage(QWidget):
def __init__(self, on_success_callback, logo_path="logo.png"):
super().__init__()
self.on_success_callback = on_success_callback
self.logo_path = logo_path
self.build_ui()


def build_ui(self):
self.setWindowTitle("Student Portal - Login")
layout = QVBoxLayout()
layout.setAlignment(Qt.AlignCenter)


# Logo area (optional)
try:
pix = QPixmap(self.logo_path)
if not pix.isNull():
logo = QLabel()
logo.setPixmap(pix.scaledToWidth(200, Qt.SmoothTransformation))
logo.setAlignment(Qt.AlignCenter)
layout.addWidget(logo)
except Exception:
pass

Document information

Uploaded on
September 14, 2025
Number of pages
19
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$2.76

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

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.
AcademicAnchor
3.6
(11)
Sold
50
Followers
1
Items
382
Last sold
1 month ago



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

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions